diff options
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-contact-list-view.c | 7 |
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) { |