From 402b4d084d1bcba9bc05bebc89866692a4d2a223 Mon Sep 17 00:00:00 2001
From: Nick Schermer <nick@xfce.org>
Date: Sun, 4 Nov 2012 10:28:19 +0100
Subject: [PATCH] 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 a2bd3c0ee..97870fdd8 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 6d141033f..c1ab46fb0 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 */
-- 
GitLab