diff options
Diffstat (limited to 'libempathy-gtk/empathy-chat.c')
-rw-r--r-- | libempathy-gtk/empathy-chat.c | 5 |
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, |