diff options
author | Milan Crha <mcrha@redhat.com> | 2009-10-27 18:45:17 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2009-10-27 18:45:17 +0800 |
commit | d00a56d4cc6f3185004f6babdb1a5f7aad729b5e (patch) | |
tree | cd2bc92c9c6863c80d909814dd1ec5f33a912fc3 /plugins/bbdb/bbdb.c | |
parent | 362260797fe0c457ffba8d1c7bb92be469d0460f (diff) | |
download | gsoc2013-evolution-d00a56d4cc6f3185004f6babdb1a5f7aad729b5e.tar gsoc2013-evolution-d00a56d4cc6f3185004f6babdb1a5f7aad729b5e.tar.gz gsoc2013-evolution-d00a56d4cc6f3185004f6babdb1a5f7aad729b5e.tar.bz2 gsoc2013-evolution-d00a56d4cc6f3185004f6babdb1a5f7aad729b5e.tar.lz gsoc2013-evolution-d00a56d4cc6f3185004f6babdb1a5f7aad729b5e.tar.xz gsoc2013-evolution-d00a56d4cc6f3185004f6babdb1a5f7aad729b5e.tar.zst gsoc2013-evolution-d00a56d4cc6f3185004f6babdb1a5f7aad729b5e.zip |
Bug #599199 - Hangs regularly when synchro with pidgin is activated
The sync is done only once on idle after start. The method of checking for
buddy list changes is done by md5 checksum now, as the pidgin start/stop
changed file time, which was the old method of detecting changes. Also not
using getenv("HOME"), but g_get_home_dir() instead.
Diffstat (limited to 'plugins/bbdb/bbdb.c')
-rw-r--r-- | plugins/bbdb/bbdb.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/plugins/bbdb/bbdb.c b/plugins/bbdb/bbdb.c index d5104dcf0c..05fff957fd 100644 --- a/plugins/bbdb/bbdb.c +++ b/plugins/bbdb/bbdb.c @@ -112,12 +112,7 @@ e_plugin_lib_enable (EPlugin *ep, gint enable) if (enable) { d(fprintf (stderr, "BBDB spinning up...\n")); - if (bbdb_check_gaim_enabled ()) - bbdb_sync_buddy_list_check (); - - g_timeout_add_seconds (BBDB_BLIST_CHECK_INTERVAL, - (GSourceFunc) bbdb_timeout, - NULL); + g_idle_add (bbdb_timeout, NULL); } return 0; @@ -129,7 +124,7 @@ bbdb_timeout (gpointer data) if (bbdb_check_gaim_enabled ()) bbdb_sync_buddy_list_check (); - return TRUE; + return FALSE; } typedef struct |