diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-02-18 18:16:39 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-02-18 18:16:39 +0800 |
commit | 03de06a7d06a37b362ed7d5d85559000a3bb411c (patch) | |
tree | 9c782f8f10e09e8a846e2ab93c97b156e42bfb97 | |
parent | ee4e14effcb1cb2b109d533c88933239c25a12c8 (diff) | |
download | gsoc2013-empathy-03de06a7d06a37b362ed7d5d85559000a3bb411c.tar gsoc2013-empathy-03de06a7d06a37b362ed7d5d85559000a3bb411c.tar.gz gsoc2013-empathy-03de06a7d06a37b362ed7d5d85559000a3bb411c.tar.bz2 gsoc2013-empathy-03de06a7d06a37b362ed7d5d85559000a3bb411c.tar.lz gsoc2013-empathy-03de06a7d06a37b362ed7d5d85559000a3bb411c.tar.xz gsoc2013-empathy-03de06a7d06a37b362ed7d5d85559000a3bb411c.tar.zst gsoc2013-empathy-03de06a7d06a37b362ed7d5d85559000a3bb411c.zip |
ensure that the theme manager stay alive
-rw-r--r-- | src/empathy.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/empathy.c b/src/empathy.c index f22d69b25..3979f1764 100644 --- a/src/empathy.c +++ b/src/empathy.c @@ -60,6 +60,7 @@ #include <libempathy-gtk/empathy-ui-utils.h> #include <libempathy-gtk/empathy-location-manager.h> +#include <libempathy-gtk/empathy-theme-manager.h> #include "empathy-main-window.h" #include "empathy-accounts-common.h" @@ -406,6 +407,7 @@ main (int argc, char *argv[]) TpDebugSender *debug_sender; #endif GSettings *gsettings; + EmpathyThemeManager *theme_mgr; GOptionContext *optcontext; GOptionEntry options[] = { @@ -547,6 +549,9 @@ main (int argc, char *argv[]) location_manager = empathy_location_manager_dup_singleton (); #endif + /* Keep the theme manager alive as it does some caching */ + theme_mgr = empathy_theme_manager_dup_singleton (); + gtk_main (); empathy_idle_set_state (idle, TP_CONNECTION_PRESENCE_TYPE_OFFLINE); @@ -569,6 +574,7 @@ main (int argc, char *argv[]) g_object_unref (ft_factory); g_object_unref (unique_app); g_object_unref (gsettings); + g_object_unref (theme_mgr); gtk_widget_destroy (window); notify_uninit (); |