[empathy/gnome-2-34] ensure that the theme manager stay alive



commit 03de06a7d06a37b362ed7d5d85559000a3bb411c
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Fri Feb 18 11:16:39 2011 +0100

    ensure that the theme manager stay alive

 src/empathy.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy.c b/src/empathy.c
index f22d69b..3979f17 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 ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]