aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-02-18 18:00:26 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-02-18 18:04:14 +0800
commitdf72fd00377a9aaed2b532c84eb0c25383991b72 (patch)
treea9dc0aec82cc0e941c95aa7ce6c1ee03b41831f1 /src
parentdf6a382a635251a6c86d81af128d4f1187491c5f (diff)
downloadgsoc2013-empathy-df72fd00377a9aaed2b532c84eb0c25383991b72.tar
gsoc2013-empathy-df72fd00377a9aaed2b532c84eb0c25383991b72.tar.gz
gsoc2013-empathy-df72fd00377a9aaed2b532c84eb0c25383991b72.tar.bz2
gsoc2013-empathy-df72fd00377a9aaed2b532c84eb0c25383991b72.tar.lz
gsoc2013-empathy-df72fd00377a9aaed2b532c84eb0c25383991b72.tar.xz
gsoc2013-empathy-df72fd00377a9aaed2b532c84eb0c25383991b72.tar.zst
gsoc2013-empathy-df72fd00377a9aaed2b532c84eb0c25383991b72.zip
empathy-chat: ensure that the theme manager stay alive
Diffstat (limited to 'src')
-rw-r--r--src/empathy-chat.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/empathy-chat.c b/src/empathy-chat.c
index 195f2ebf2..73d8ce87c 100644
--- a/src/empathy-chat.c
+++ b/src/empathy-chat.c
@@ -31,6 +31,8 @@
#include <telepathy-glib/debug-sender.h>
#include <libempathy/empathy-presence-manager.h>
+
+#include <libempathy-gtk/empathy-theme-manager.h>
#include <libempathy-gtk/empathy-ui-utils.h>
#include "empathy-chat-manager.h"
@@ -96,6 +98,7 @@ main (int argc,
#endif
GError *error = NULL;
EmpathyPresenceManager *presence_mgr;
+ EmpathyThemeManager *theme_mgr;
gint retval;
/* Init */
@@ -137,6 +140,9 @@ main (int argc,
/* Setting up Idle */
presence_mgr = empathy_presence_manager_dup_singleton ();
+ /* Keep the theme manager alive as it does some caching */
+ theme_mgr = empathy_theme_manager_dup_singleton ();
+
if (g_getenv ("EMPATHY_PERSIST") != NULL)
{
DEBUG ("Disable timer");
@@ -155,6 +161,7 @@ main (int argc,
g_object_unref (app);
g_object_unref (presence_mgr);
+ g_object_unref (theme_mgr);
tp_clear_object (&chat_mgr);
#ifdef ENABLE_DEBUG