* Philip Withnall <philip.withnall@collabora.co.uk>
*/
-#include <config.h>
-
-#include <string.h>
-#include <stdlib.h>
+#include "config.h"
+#include "empathy-groups-widget.h"
-#include <gtk/gtk.h>
#include <glib/gi18n-lib.h>
+#include <tp-account-widgets/tpaw-utils.h>
-#include <telepathy-glib/util.h>
-
-#include <folks/folks.h>
-
-#include <libempathy/empathy-utils.h>
-#include <libempathy/empathy-connection-aggregator.h>
-
-#include "empathy-groups-widget.h"
-#include "empathy-ui-utils.h"
+#include "empathy-utils.h"
+#include "empathy-connection-aggregator.h"
/**
* SECTION:empathy-groups-widget
EmpathyGroupsWidgetPriv *priv = GET_PRIV (self);
FindNameData data;
- if (EMP_STR_EMPTY (name))
+ if (TPAW_STR_EMPTY (name))
return FALSE;
data.widget = self;
{
EmpathyGroupsWidgetPriv *priv = GET_PRIV (self);
EmpathyConnectionAggregator *aggregator;
- GtkTreeIter iter;
GeeSet *member_groups;
GList *all_groups, *l;
enabled = gee_collection_contains (GEE_COLLECTION (member_groups),
group_str);
- gtk_list_store_append (priv->group_store, &iter);
- gtk_list_store_set (priv->group_store, &iter,
+ gtk_list_store_insert_with_values (priv->group_store, NULL, -1,
COL_NAME, group_str,
COL_EDITABLE, TRUE,
COL_ENABLED, enabled,
else
{
gtk_widget_set_sensitive (GTK_WIDGET (priv->add_group_button),
- !EMP_STR_EMPTY (group));
+ !TPAW_STR_EMPTY (group));
}
}
EmpathyGroupsWidget *self)
{
EmpathyGroupsWidgetPriv *priv = GET_PRIV (self);
- GtkTreeIter iter;
const gchar *group;
group = gtk_entry_get_text (GTK_ENTRY (priv->add_group_entry));
- gtk_list_store_append (priv->group_store, &iter);
- gtk_list_store_set (priv->group_store, &iter,
+ gtk_list_store_insert_with_values (priv->group_store, NULL, -1,
COL_NAME, group,
COL_ENABLED, TRUE,
-1);