diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-02-17 18:15:48 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-02-17 21:48:40 +0800 |
commit | 4ee8d2a57e3165f036edf53e336282c1cab88b89 (patch) | |
tree | cc56885cc495e4eb7c1b7abb4ae81887aee49f1f /libempathy-gtk/empathy-log-window.c | |
parent | e42a54e9e1bfe9a16ad319dc182b3e55caf69f90 (diff) | |
download | gsoc2013-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-log-window.c')
-rw-r--r-- | libempathy-gtk/empathy-log-window.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c index 73a931698..256b0704c 100644 --- a/libempathy-gtk/empathy-log-window.c +++ b/libempathy-gtk/empathy-log-window.c @@ -221,6 +221,7 @@ empathy_log_window_show (TpAccount *account, GtkBuilder *gui; gchar *filename; EmpathyLogWindow *window; + EmpathyThemeManager *theme_mgr; if (log_window != NULL) { gtk_window_present (GTK_WINDOW (log_window->window)); @@ -282,16 +283,18 @@ empathy_log_window_show (TpAccount *account, window); /* Configure Search EmpathyChatView */ - window->chatview_find = empathy_theme_manager_create_view (empathy_theme_manager_get ()); + theme_mgr = empathy_theme_manager_dup_singleton (); + window->chatview_find = empathy_theme_manager_create_view (theme_mgr); gtk_container_add (GTK_CONTAINER (window->scrolledwindow_find), GTK_WIDGET (window->chatview_find)); gtk_widget_show (GTK_WIDGET (window->chatview_find)); /* Configure Contacts EmpathyChatView */ - window->chatview_chats = empathy_theme_manager_create_view (empathy_theme_manager_get ()); + window->chatview_chats = empathy_theme_manager_create_view (theme_mgr); gtk_container_add (GTK_CONTAINER (window->scrolledwindow_chats), GTK_WIDGET (window->chatview_chats)); gtk_widget_show (GTK_WIDGET (window->chatview_chats)); + g_object_unref (theme_mgr); /* Account chooser for chats */ window->account_chooser_chats = empathy_account_chooser_new (); |