aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/bbdb
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 /plugins/bbdb
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 'plugins/bbdb')
-rw-r--r--plugins/bbdb/bbdb.c2
-rw-r--r--plugins/bbdb/bbdb.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/bbdb/bbdb.c b/plugins/bbdb/bbdb.c
index 547a779961..adc89dbcb2 100644
--- a/plugins/bbdb/bbdb.c
+++ b/plugins/bbdb/bbdb.c
@@ -115,7 +115,7 @@ e_plugin_lib_enable (EPluginLib *ep, int enable)
if (bbdb_check_gaim_enabled ())
bbdb_sync_buddy_list_check ();
- g_timeout_add (BBDB_BLIST_CHECK_INTERVAL,
+ g_timeout_add_seconds (BBDB_BLIST_CHECK_INTERVAL,
(GSourceFunc) bbdb_timeout,
NULL);
}
diff --git a/plugins/bbdb/bbdb.h b/plugins/bbdb/bbdb.h
index e36a7737c3..55c88709b0 100644
--- a/plugins/bbdb/bbdb.h
+++ b/plugins/bbdb/bbdb.h
@@ -33,7 +33,7 @@
/* How often to poll the buddy list for changes (every two minutes) */
-#define BBDB_BLIST_CHECK_INTERVAL (2 * 60 * 1000)
+#define BBDB_BLIST_CHECK_INTERVAL (2 * 60)
/* bbdb.c */
EBook *bbdb_open_addressbook (int type);