aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/gconf-bridge.c
diff options
context:
space:
mode:
authorMarcel Stimberg <marcelcoding@googlemail.com>2009-05-04 12:40:55 +0800
committerBharath Acharya <abharath@novell.com>2009-05-04 12:40:55 +0800
commit6e72a236dcb592a942881e118d6a71888ea1581b (patch)
treec4c3c8a45aa257efd819dea3a59c14c9c0b117b7 /e-util/gconf-bridge.c
parentfad86a267fd3c0ebc402ca67f14a0d2f74f57b74 (diff)
downloadgsoc2013-evolution-6e72a236dcb592a942881e118d6a71888ea1581b.tar.gz
gsoc2013-evolution-6e72a236dcb592a942881e118d6a71888ea1581b.tar.zst
gsoc2013-evolution-6e72a236dcb592a942881e118d6a71888ea1581b.zip
** BUGFIX: 573830 - g_timeout_add_seconds should be preferred to g_timeout_add
According to https://wiki.ubuntu.com/SavingTheWorld (and of course according to the gtk docs) using g_timeout_add_seconds is preferred over g_timeout_add if a timeout in seconds is desired.
Diffstat (limited to 'e-util/gconf-bridge.c')
-rw-r--r--e-util/gconf-bridge.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/e-util/gconf-bridge.c b/e-util/gconf-bridge.c
index 66dcbc7ea2..81fe08ef14 100644
--- a/e-util/gconf-bridge.c
+++ b/e-util/gconf-bridge.c
@@ -645,8 +645,8 @@ window_binding_perform_scheduled_sync (WindowBinding *binding)
return FALSE;
}
-#define WINDOW_BINDING_SYNC_DELAY 1000 /* Delay before syncing new window
- dimensions to GConf, in ms */
+#define WINDOW_BINDING_SYNC_DELAY 1 /* Delay before syncing new window
+ dimensions to GConf, in s */
/* Called when the window han been resized or moved */
static gboolean
@@ -657,7 +657,7 @@ window_binding_configure_event_cb (GtkWindow *window,
/* Schedule a sync */
if (binding->sync_timeout_id == 0) {
binding->sync_timeout_id =
- g_timeout_add (WINDOW_BINDING_SYNC_DELAY,
+ g_timeout_add_seconds (WINDOW_BINDING_SYNC_DELAY,
(GSourceFunc)
window_binding_perform_scheduled_sync,
binding);