diff --git a/thunar/thunar-window.c b/thunar/thunar-window.c index a2bd3c0eec29921726f9f33175e1e2c605d09b59..97870fdd8611efd218477e4b5e5ff60ee05bfc34 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 6d141033fe86822b0be3399d1b83e8da442403c4..c1ab46fb0f9ccfd7968a5248f54d718da6bbbd41 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 */