aboutsummaryrefslogtreecommitdiffstats
path: root/composer
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 /composer
parentfad86a267fd3c0ebc402ca67f14a0d2f74f57b74 (diff)
downloadgsoc2013-evolution-6e72a236dcb592a942881e118d6a71888ea1581b.tar
gsoc2013-evolution-6e72a236dcb592a942881e118d6a71888ea1581b.tar.gz
gsoc2013-evolution-6e72a236dcb592a942881e118d6a71888ea1581b.tar.bz2
gsoc2013-evolution-6e72a236dcb592a942881e118d6a71888ea1581b.tar.lz
gsoc2013-evolution-6e72a236dcb592a942881e118d6a71888ea1581b.tar.xz
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 'composer')
-rw-r--r--composer/e-composer-autosave.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/composer/e-composer-autosave.c b/composer/e-composer-autosave.c
index 78b8134941..842deae9c9 100644
--- a/composer/e-composer-autosave.c
+++ b/composer/e-composer-autosave.c
@@ -28,7 +28,7 @@
#define AUTOSAVE_PREFIX ".evolution-composer.autosave"
#define AUTOSAVE_SEED AUTOSAVE_PREFIX "-XXXXXX"
-#define AUTOSAVE_INTERVAL 60000 /* 60 seconds */
+#define AUTOSAVE_INTERVAL 60 /* 60 seconds */
typedef struct _AutosaveState AutosaveState;
@@ -222,7 +222,7 @@ e_composer_autosave_register (EMsgComposer *composer)
composer_autosave_notify, NULL);
if (autosave_source_id == 0)
- autosave_source_id = g_timeout_add (
+ autosave_source_id = g_timeout_add_seconds (
AUTOSAVE_INTERVAL, (GSourceFunc)
composer_autosave_timeout, NULL);
}