diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-02-10 21:54:19 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-02-15 17:48:23 +0800 |
commit | 84e286a84d838896a0dc4e1a1ee9104f8c9dbabb (patch) | |
tree | e64650a2b1fd60d458da71a07cdd471591e473eb | |
parent | fac52e2c170e94ecad67f3087a462baf9ba5f49e (diff) | |
download | gsoc2013-empathy-84e286a84d838896a0dc4e1a1ee9104f8c9dbabb.tar gsoc2013-empathy-84e286a84d838896a0dc4e1a1ee9104f8c9dbabb.tar.gz gsoc2013-empathy-84e286a84d838896a0dc4e1a1ee9104f8c9dbabb.tar.bz2 gsoc2013-empathy-84e286a84d838896a0dc4e1a1ee9104f8c9dbabb.tar.lz gsoc2013-empathy-84e286a84d838896a0dc4e1a1ee9104f8c9dbabb.tar.xz gsoc2013-empathy-84e286a84d838896a0dc4e1a1ee9104f8c9dbabb.tar.zst gsoc2013-empathy-84e286a84d838896a0dc4e1a1ee9104f8c9dbabb.zip |
empathy-chat: keep the individual manager alive as a cache
https://bugzilla.gnome.org/show_bug.cgi?id=669676
-rw-r--r-- | src/empathy-chat.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/empathy-chat.c b/src/empathy-chat.c index 43ab00270..bebca4382 100644 --- a/src/empathy-chat.c +++ b/src/empathy-chat.c @@ -31,6 +31,7 @@ #include <telepathy-glib/debug-sender.h> #include <libempathy/empathy-presence-manager.h> +#include <libempathy/empathy-individual-manager.h> #include <libempathy-gtk/empathy-theme-manager.h> #include <libempathy-gtk/empathy-ui-utils.h> @@ -100,6 +101,7 @@ main (int argc, EmpathyPresenceManager *presence_mgr; EmpathyThemeManager *theme_mgr; gint retval; + EmpathyIndividualManager *individual_mgr; /* Init */ g_thread_init (NULL); @@ -143,6 +145,10 @@ main (int argc, /* Keep the theme manager alive as it does some caching */ theme_mgr = empathy_theme_manager_dup_singleton (); + /* Keep the individual manager alive so we won't fetch everything from Folks + * each time we need to use it. */ + individual_mgr = empathy_individual_manager_dup_singleton (); + if (g_getenv ("EMPATHY_PERSIST") != NULL) { DEBUG ("Disable timer"); @@ -163,6 +169,7 @@ main (int argc, g_object_unref (presence_mgr); g_object_unref (theme_mgr); tp_clear_object (&chat_mgr); + g_object_unref (individual_mgr); #ifdef ENABLE_DEBUG g_object_unref (debug_sender); |