aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-contact-dialogs.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2009-01-09 18:06:32 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-01-09 18:06:32 +0800
commit5dadc0ac3a478376337e2d10dec4ade7d5b44998 (patch)
treee9c0587441515b0ef5c383aa2e8f78b8243f8987 /libempathy-gtk/empathy-contact-dialogs.c
parentcdd2f65ff2d5b70b09b4ac57f28a94d38715c62d (diff)
downloadgsoc2013-empathy-5dadc0ac3a478376337e2d10dec4ade7d5b44998.tar
gsoc2013-empathy-5dadc0ac3a478376337e2d10dec4ade7d5b44998.tar.gz
gsoc2013-empathy-5dadc0ac3a478376337e2d10dec4ade7d5b44998.tar.bz2
gsoc2013-empathy-5dadc0ac3a478376337e2d10dec4ade7d5b44998.tar.lz
gsoc2013-empathy-5dadc0ac3a478376337e2d10dec4ade7d5b44998.tar.xz
gsoc2013-empathy-5dadc0ac3a478376337e2d10dec4ade7d5b44998.tar.zst
gsoc2013-empathy-5dadc0ac3a478376337e2d10dec4ade7d5b44998.zip
Port EmpathyContactManager to the new singleton policy.
svn path=/trunk/; revision=2121
Diffstat (limited to 'libempathy-gtk/empathy-contact-dialogs.c')
-rw-r--r--libempathy-gtk/empathy-contact-dialogs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-contact-dialogs.c b/libempathy-gtk/empathy-contact-dialogs.c
index f7b6cb635..0b02cead7 100644
--- a/libempathy-gtk/empathy-contact-dialogs.c
+++ b/libempathy-gtk/empathy-contact-dialogs.c
@@ -68,7 +68,7 @@ subscription_dialog_response_cb (GtkDialog *dialog,
EmpathyContactManager *manager;
EmpathyContact *contact;
- manager = empathy_contact_manager_new ();
+ manager = empathy_contact_manager_dup_singleton ();
contact = empathy_contact_widget_get_contact (contact_widget);
if (response == GTK_RESPONSE_YES) {
@@ -242,7 +242,7 @@ can_add_contact_to_account (McAccount *account,
EmpathyContactManager *mgr;
gboolean result;
- mgr = empathy_contact_manager_new ();
+ mgr = empathy_contact_manager_dup_singleton ();
result = empathy_contact_manager_can_add (mgr, account);
g_object_unref (mgr);
@@ -257,7 +257,7 @@ new_contact_response_cb (GtkDialog *dialog,
EmpathyContactManager *manager;
EmpathyContact *contact;
- manager = empathy_contact_manager_new ();
+ manager = empathy_contact_manager_dup_singleton ();
contact = empathy_contact_widget_get_contact (contact_widget);
if (contact && response == GTK_RESPONSE_OK) {