aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-chat.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-02-17 18:15:48 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-02-17 21:47:39 +0800
commit9cae8fb44d9d76ad88d09527f48192dffba57711 (patch)
treedd0e01a1824962f484d7f2ada0980177a13e3716 /libempathy-gtk/empathy-chat.c
parent382bb4914eb08c7c1472350633b1fe91bba50c05 (diff)
downloadgsoc2013-empathy-9cae8fb44d9d76ad88d09527f48192dffba57711.tar
gsoc2013-empathy-9cae8fb44d9d76ad88d09527f48192dffba57711.tar.gz
gsoc2013-empathy-9cae8fb44d9d76ad88d09527f48192dffba57711.tar.bz2
gsoc2013-empathy-9cae8fb44d9d76ad88d09527f48192dffba57711.tar.lz
gsoc2013-empathy-9cae8fb44d9d76ad88d09527f48192dffba57711.tar.xz
gsoc2013-empathy-9cae8fb44d9d76ad88d09527f48192dffba57711.tar.zst
gsoc2013-empathy-9cae8fb44d9d76ad88d09527f48192dffba57711.zip
rename empathy_theme_manager_get() to empathy_theme_manager_dup_singleton()
We also don't leak it any more.
Diffstat (limited to 'libempathy-gtk/empathy-chat.c')
-rw-r--r--libempathy-gtk/empathy-chat.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index f68e1cc83..2f374cd62 100644
--- a/libempathy-gtk/empathy-chat.c
+++ b/libempathy-gtk/empathy-chat.c
@@ -2570,6 +2570,7 @@ chat_create_ui (EmpathyChat *chat)
gchar *filename;
GtkTextBuffer *buffer;
gint paned_pos;
+ EmpathyThemeManager *theme_mgr;
filename = empathy_file_lookup ("empathy-chat.ui",
"libempathy-gtk");
@@ -2594,7 +2595,9 @@ chat_create_ui (EmpathyChat *chat)
g_free (filename);
/* Add message view. */
- chat->view = empathy_theme_manager_create_view (empathy_theme_manager_get ());
+ theme_mgr = empathy_theme_manager_dup_singleton ();
+ chat->view = empathy_theme_manager_create_view (theme_mgr);
+ g_object_unref (theme_mgr);
/* If this is a GtkTextView, it's set as a drag destination for text/plain
and other types, even though it's non-editable and doesn't accept any
drags. This steals drag motion for anything inside the scrollbars,