diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2010-05-10 18:36:28 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2010-05-26 17:17:47 +0800 |
commit | b8ff75d21c1be60e6df472a35599a9e22046a92b (patch) | |
tree | fcaa7453e65ac310e4a3c0f854bcb8b588722863 /libempathy-gtk/empathy-contact-dialogs.c | |
parent | 696bd076bbd431aad122c66cadfb6ec3f5ff1762 (diff) | |
download | gsoc2013-empathy-b8ff75d21c1be60e6df472a35599a9e22046a92b.tar gsoc2013-empathy-b8ff75d21c1be60e6df472a35599a9e22046a92b.tar.gz gsoc2013-empathy-b8ff75d21c1be60e6df472a35599a9e22046a92b.tar.bz2 gsoc2013-empathy-b8ff75d21c1be60e6df472a35599a9e22046a92b.tar.lz gsoc2013-empathy-b8ff75d21c1be60e6df472a35599a9e22046a92b.tar.xz gsoc2013-empathy-b8ff75d21c1be60e6df472a35599a9e22046a92b.tar.zst gsoc2013-empathy-b8ff75d21c1be60e6df472a35599a9e22046a92b.zip |
Port to new EmpathyTpContactFactory API
Diffstat (limited to 'libempathy-gtk/empathy-contact-dialogs.c')
-rw-r--r-- | libempathy-gtk/empathy-contact-dialogs.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/libempathy-gtk/empathy-contact-dialogs.c b/libempathy-gtk/empathy-contact-dialogs.c index fed8d04cb..aaeea4b7c 100644 --- a/libempathy-gtk/empathy-contact-dialogs.c +++ b/libempathy-gtk/empathy-contact-dialogs.c @@ -73,17 +73,11 @@ subscription_dialog_response_cb (GtkDialog *dialog, contact = empathy_contact_widget_get_contact (contact_widget); if (response == GTK_RESPONSE_YES) { - EmpathyTpContactFactory *factory; - - factory = empathy_tp_contact_factory_dup_singleton ( - empathy_contact_get_connection (contact)); - empathy_contact_list_add (EMPATHY_CONTACT_LIST (manager), contact, ""); - empathy_tp_contact_factory_set_alias (factory, contact, - empathy_contact_widget_get_alias (contact_widget)); - g_object_unref (factory); + empathy_tp_contact_factory_set_alias (contact, + empathy_contact_widget_get_alias (contact_widget)); } else if (response == GTK_RESPONSE_NO) { empathy_contact_list_remove (EMPATHY_CONTACT_LIST (manager), |