]> git.0d.be Git - empathy.git/commitdiff
contact-list-view: use empathy_contact_remove_from_contact_list()
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 3 Nov 2011 14:07:17 +0000 (15:07 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 8 Nov 2011 12:33:27 +0000 (13:33 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=663327

libempathy-gtk/empathy-contact-list-view.c

index 1d95baf8ec4c35407713e862d163027355006d7d..b1d20f8e523e808c85b044a439c76e6791d10491 100644 (file)
@@ -2003,7 +2003,6 @@ static void
 contact_list_view_remove_activate_cb (GtkMenuItem            *menuitem,
                                      EmpathyContactListView *view)
 {
 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);
        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)) {
                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);
                }
 
                g_free (text);