[Xfce4-commits] <thunar:master> Use seconds timers where possible.

Nick Schermer noreply at xfce.org
Sun Nov 4 10:40:06 CET 2012


Updating branch refs/heads/master
         to 402b4d084d1bcba9bc05bebc89866692a4d2a223 (commit)
       from d3a6b9fef305fc7513905e953b5243586cad99b4 (commit)

commit 402b4d084d1bcba9bc05bebc89866692a4d2a223
Author: Nick Schermer <nick at xfce.org>
Date:   Sun Nov 4 10:28:19 2012 +0100

    Use seconds timers where possible.

 thunar/thunar-window.c             |    4 ++--
 thunarx/thunarx-provider-factory.c |   10 +++++-----
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/thunar/thunar-window.c b/thunar/thunar-window.c
index a2bd3c0..97870fd 100644
--- a/thunar/thunar-window.c
+++ b/thunar/thunar-window.c
@@ -1374,8 +1374,8 @@ thunar_window_configure_event (GtkWidget         *widget,
       if (gtk_widget_get_visible (widget))
         {
           /* save the geometry one second after the last configure event */
-          window->save_geometry_timer_id = g_timeout_add_full (G_PRIORITY_LOW, 1000, thunar_window_save_geometry_timer,
-                                                               window, thunar_window_save_geometry_timer_destroy);
+          window->save_geometry_timer_id = g_timeout_add_seconds_full (G_PRIORITY_LOW, 1, thunar_window_save_geometry_timer,
+                                                                       window, thunar_window_save_geometry_timer_destroy);
         }
     }
 
diff --git a/thunarx/thunarx-provider-factory.c b/thunarx/thunarx-provider-factory.c
index 6d14103..c1ab46f 100644
--- a/thunarx/thunarx-provider-factory.c
+++ b/thunarx/thunarx-provider-factory.c
@@ -31,8 +31,8 @@
 
 
 
-/* "provider cache" cleanup interval (in ms) */
-#define THUNARX_PROVIDER_FACTORY_INTERVAL (45 * 1000)
+/* "provider cache" cleanup interval (in seconds) */
+#define THUNARX_PROVIDER_FACTORY_INTERVAL (45)
 
 
 
@@ -299,9 +299,9 @@ thunarx_provider_factory_list_providers (ThunarxProviderFactory *factory,
       modules = thunarx_provider_factory_load_modules (factory);
 
       /* start the "provider cache" cleanup timer */
-      factory->timer_id = g_timeout_add_full (G_PRIORITY_LOW, THUNARX_PROVIDER_FACTORY_INTERVAL,
-                                              thunarx_provider_factory_timer, factory,
-                                              thunarx_provider_factory_timer_destroy);
+      factory->timer_id = g_timeout_add_seconds_full (G_PRIORITY_LOW, THUNARX_PROVIDER_FACTORY_INTERVAL,
+                                                      thunarx_provider_factory_timer, factory,
+                                                      thunarx_provider_factory_timer_destroy);
     }
 
   /* determine all available providers for the type */


More information about the Xfce4-commits mailing list