]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-contact-list.c
Add a remove option to delete a contact group. Fixes bug #459520 (David Turner).
[empathy.git] / libempathy / empathy-contact-list.c
index 5632652670a4fa4fbf9baa81d5f4717072fd514a..5164ccf1a5ad1b7adb890c60338982c91defa526 100644 (file)
@@ -203,3 +203,15 @@ empathy_contact_list_rename_group (EmpathyContactList *list,
        }
 }
 
+void
+empathy_contact_list_remove_group (EmpathyContactList *list,
+                                  const gchar *group)
+{
+       g_return_if_fail (EMPATHY_IS_CONTACT_LIST (list));
+       g_return_if_fail (group != NULL);
+
+       if (EMPATHY_CONTACT_LIST_GET_IFACE (list)->remove_group) {
+               EMPATHY_CONTACT_LIST_GET_IFACE (list)->remove_group (list, group);
+       }
+}
+