[empathy] contact-list-view: use empathy_contact_remove_from_contact_list()



commit 704b05c60943bbb09dcd6d95ba8781431d67978b
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Thu Nov 3 15:07:17 2011 +0100

    contact-list-view: use empathy_contact_remove_from_contact_list()
    
    https://bugzilla.gnome.org/show_bug.cgi?id=663327

 libempathy-gtk/empathy-contact-list-view.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/libempathy-gtk/empathy-contact-list-view.c b/libempathy-gtk/empathy-contact-list-view.c
index 1d95baf..b1d20f8 100644
--- a/libempathy-gtk/empathy-contact-list-view.c
+++ b/libempathy-gtk/empathy-contact-list-view.c
@@ -2003,7 +2003,6 @@ static void
 contact_list_view_remove_activate_cb (GtkMenuItem            *menuitem,
 				      EmpathyContactListView *view)
 {
-	EmpathyContactListViewPriv *priv = GET_PRIV (view);
 	EmpathyContact             *contact;
 
 	contact = empathy_contact_list_view_dup_selected (view);
@@ -2016,10 +2015,7 @@ contact_list_view_remove_activate_cb (GtkMenuItem            *menuitem,
 		text = g_strdup_printf (_("Do you really want to remove the contact '%s'?"),
 					empathy_contact_get_alias (contact));
 		if (contact_list_view_remove_dialog_show (parent, _("Removing contact"), text)) {
-			EmpathyContactList *list;
-
-			list = empathy_contact_list_store_get_list_iface (priv->store);
-			empathy_contact_list_remove (list, contact, "");
+			empathy_contact_remove_from_contact_list (contact);
 		}
 
 		g_free (text);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]