aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-01-02 06:10:22 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-01-02 06:10:22 +0800
commit5ba8e4047cf01d47781db85b2c400e67b84026a9 (patch)
tree164870ce992ada4185388a2a4f70fb68996f6649 /libempathy-gtk
parent6fd6f3b1081a5b72054ef135346da0d5eb979590 (diff)
downloadgsoc2013-empathy-5ba8e4047cf01d47781db85b2c400e67b84026a9.tar
gsoc2013-empathy-5ba8e4047cf01d47781db85b2c400e67b84026a9.tar.gz
gsoc2013-empathy-5ba8e4047cf01d47781db85b2c400e67b84026a9.tar.bz2
gsoc2013-empathy-5ba8e4047cf01d47781db85b2c400e67b84026a9.tar.lz
gsoc2013-empathy-5ba8e4047cf01d47781db85b2c400e67b84026a9.tar.xz
gsoc2013-empathy-5ba8e4047cf01d47781db85b2c400e67b84026a9.tar.zst
gsoc2013-empathy-5ba8e4047cf01d47781db85b2c400e67b84026a9.zip
Add a remove option to delete a contact group. Fixes bug #459520 (David Turner).
svn path=/trunk/; revision=528
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-contact-list-view.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-contact-list-view.c b/libempathy-gtk/empathy-contact-list-view.c
index 498d88721..6e5ab8536 100644
--- a/libempathy-gtk/empathy-contact-list-view.c
+++ b/libempathy-gtk/empathy-contact-list-view.c
@@ -261,6 +261,7 @@ static const gchar *ui_info =
" </popup>"
" <popup name='Group'>"
" <menuitem action='Rename'/>"
+ " <menuitem action='Remove'/>"
" </popup>"
"</ui>";
@@ -1426,6 +1427,12 @@ contact_list_view_action_cb (GtkAction *action,
}
else if (group && strcmp (name, "Rename") == 0) {
}
+ else if (group && strcmp (name, "Remove") == 0) {
+ EmpathyContactList *list;
+
+ list = empathy_contact_list_store_get_list_iface (priv->store);
+ empathy_contact_list_remove_group (list, group);
+ }
g_free (group);
if (contact) {