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:48:40 +0800
commit4ee8d2a57e3165f036edf53e336282c1cab88b89 (patch)
treecc56885cc495e4eb7c1b7abb4ae81887aee49f1f /libempathy-gtk/empathy-chat.c
parente42a54e9e1bfe9a16ad319dc182b3e55caf69f90 (diff)
downloadgsoc2013-empathy-4ee8d2a57e3165f036edf53e336282c1cab88b89.tar
gsoc2013-empathy-4ee8d2a57e3165f036edf53e336282c1cab88b89.tar.gz
gsoc2013-empathy-4ee8d2a57e3165f036edf53e336282c1cab88b89.tar.bz2
gsoc2013-empathy-4ee8d2a57e3165f036edf53e336282c1cab88b89.tar.lz
gsoc2013-empathy-4ee8d2a57e3165f036edf53e336282c1cab88b89.tar.xz
gsoc2013-empathy-4ee8d2a57e3165f036edf53e336282c1cab88b89.tar.zst
gsoc2013-empathy-4ee8d2a57e3165f036edf53e336282c1cab88b89.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 f9c5e4272..814f0a760 100644
--- a/libempathy-gtk/empathy-chat.c
+++ b/libempathy-gtk/empathy-chat.c
@@ -2426,6 +2426,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");
@@ -2451,7 +2452,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,