aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2009-01-09 18:06:05 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-01-09 18:06:05 +0800
commiteba974e2a304815ebd8287d6696aaa9803a19bb2 (patch)
treeaf6f6326e21a3d8eefe72d26f72a57fdf1b63fbb /libempathy-gtk
parentc2a1dec002eb9a8c0372bc6fc920a54e36b7e991 (diff)
downloadgsoc2013-empathy-eba974e2a304815ebd8287d6696aaa9803a19bb2.tar
gsoc2013-empathy-eba974e2a304815ebd8287d6696aaa9803a19bb2.tar.gz
gsoc2013-empathy-eba974e2a304815ebd8287d6696aaa9803a19bb2.tar.bz2
gsoc2013-empathy-eba974e2a304815ebd8287d6696aaa9803a19bb2.tar.lz
gsoc2013-empathy-eba974e2a304815ebd8287d6696aaa9803a19bb2.tar.xz
gsoc2013-empathy-eba974e2a304815ebd8287d6696aaa9803a19bb2.tar.zst
gsoc2013-empathy-eba974e2a304815ebd8287d6696aaa9803a19bb2.zip
Port EmpathyLogManager to the new singleton policy.
svn path=/trunk/; revision=2115
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-chat.c2
-rw-r--r--libempathy-gtk/empathy-contact-menu.c2
-rw-r--r--libempathy-gtk/empathy-log-window.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index 31b676edb..0bfad9536 100644
--- a/libempathy-gtk/empathy-chat.c
+++ b/libempathy-gtk/empathy-chat.c
@@ -1526,7 +1526,7 @@ empathy_chat_init (EmpathyChat *chat)
EMPATHY_TYPE_CHAT, EmpathyChatPriv);
chat->priv = priv;
- priv->log_manager = empathy_log_manager_new ();
+ priv->log_manager = empathy_log_manager_dup_singleton ();
priv->contacts_width = -1;
priv->sent_messages = NULL;
priv->sent_messages_index = -1;
diff --git a/libempathy-gtk/empathy-contact-menu.c b/libempathy-gtk/empathy-contact-menu.c
index 8a1f451d9..ab9ba721f 100644
--- a/libempathy-gtk/empathy-contact-menu.c
+++ b/libempathy-gtk/empathy-contact-menu.c
@@ -171,7 +171,7 @@ empathy_contact_log_menu_item_new (EmpathyContact *contact)
g_return_val_if_fail (EMPATHY_IS_CONTACT (contact), NULL);
- manager = empathy_log_manager_new ();
+ manager = empathy_log_manager_dup_singleton ();
have_log = empathy_log_manager_exists (manager,
empathy_contact_get_account (contact),
empathy_contact_get_id (contact),
diff --git a/libempathy-gtk/empathy-log-window.c b/libempathy-gtk/empathy-log-window.c
index 6020630d6..5f704a3be 100644
--- a/libempathy-gtk/empathy-log-window.c
+++ b/libempathy-gtk/empathy-log-window.c
@@ -160,7 +160,7 @@ empathy_log_window_show (McAccount *account,
}
window = g_new0 (EmpathyLogWindow, 1);
- window->log_manager = empathy_log_manager_new ();
+ window->log_manager = empathy_log_manager_dup_singleton ();
filename = empathy_file_lookup ("empathy-log-window.glade",
"libempathy-gtk");