[nautilus-actions] Use a milliseconds timeout to get a better UI reactivity
- From: Pierre Wieser <pwieser src gnome org>
- To: svn-commits-list gnome org
- Subject: [nautilus-actions] Use a milliseconds timeout to get a better UI reactivity
- Date: Tue, 14 Jul 2009 18:49:21 +0000 (UTC)
commit 32dfe09c413f02f72f868bc35470357b842fea8e
Author: Pierre Wieser <pwieser trychlos org>
Date: Thu Jul 2 19:18:14 2009 +0200
Use a milliseconds timeout to get a better UI reactivity
ChangeLog | 3 +++
src/common/na-pivot.c | 7 ++++---
2 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 9f7179e..9bf62b4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2009-07-02 Pierre Wieser <pwieser trychlos org>
+ * src/common/na-pivot.c (action_changed_handler):
+ Use a milliseconds timeout to get a better UI reactivity.
+
* src/nact/nact-action-conditions-editor.c (on_cancel_clicked):
New function to trigger dialog response.
diff --git a/src/common/na-pivot.c b/src/common/na-pivot.c
index f26801a..fbc5c57 100644
--- a/src/common/na-pivot.c
+++ b/src/common/na-pivot.c
@@ -88,7 +88,8 @@ static GObjectClass *st_parent_class = NULL;
static gint st_signals[ LAST_SIGNAL ] = { 0 };
static GTimeVal st_last_event;
static guint st_event_source_id = 0;
-static gint st_timeout_usec = 500000;
+static gint st_timeout_msec = 100;
+static gint st_timeout_usec = 100000;
static GType register_type( void );
static void class_init( NAPivotClass *klass );
@@ -432,10 +433,10 @@ action_changed_handler( NAPivot *self, gpointer user_data )
return;
}
- /* set a timeout to notify nautilus at the end of the serie */
+ /* set a timeout to notify clients at the end of the serie */
g_get_current_time( &st_last_event );
if( !st_event_source_id ){
- st_event_source_id = g_timeout_add_seconds( 1, ( GSourceFunc ) on_actions_changed_timeout, self );
+ st_event_source_id = g_timeout_add( st_timeout_msec, ( GSourceFunc ) on_actions_changed_timeout, self );
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]