static void contact_manager_remove_group_foreach (TpConnection *connection, EmpathyTpContactList *list, const gchar *group) { empathy_contact_list_remove_group (EMPATHY_CONTACT_LIST (list), group); }
static void contact_list_view_group_remove_activate_cb (GtkMenuItem *menuitem, EmpathyContactListView *view) { EmpathyContactListViewPriv *priv = GET_PRIV (view); gchar *group; group = empathy_contact_list_view_get_selected_group (view); if (group) { gchar *text; GtkWindow *parent; text = g_strdup_printf (_("Do you really want to remove the group '%s'?"), group); parent = empathy_get_toplevel_window (GTK_WIDGET (view)); if (contact_list_view_remove_dialog_show (parent, _("Removing group"), text)) { EmpathyContactList *list; list = empathy_contact_list_store_get_list_iface (priv->store); empathy_contact_list_remove_group (list, group); } g_free (text); } g_free (group); }