aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-03-29 21:12:10 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-03-29 21:24:07 +0800
commit30e1511b7d5ea2e98c948e6a8ffffef937544d6e (patch)
tree180f5cf26263a633c331962f3a9f9b67c61d435d
parent97089275ffec48d3da9d585a5389c0893a21fc46 (diff)
downloadgsoc2013-empathy-30e1511b7d5ea2e98c948e6a8ffffef937544d6e.tar
gsoc2013-empathy-30e1511b7d5ea2e98c948e6a8ffffef937544d6e.tar.gz
gsoc2013-empathy-30e1511b7d5ea2e98c948e6a8ffffef937544d6e.tar.bz2
gsoc2013-empathy-30e1511b7d5ea2e98c948e6a8ffffef937544d6e.tar.lz
gsoc2013-empathy-30e1511b7d5ea2e98c948e6a8ffffef937544d6e.tar.xz
gsoc2013-empathy-30e1511b7d5ea2e98c948e6a8ffffef937544d6e.tar.zst
gsoc2013-empathy-30e1511b7d5ea2e98c948e6a8ffffef937544d6e.zip
groups-widget: use gtk_list_store_insert_with_values()
-rw-r--r--libempathy-gtk/empathy-groups-widget.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/libempathy-gtk/empathy-groups-widget.c b/libempathy-gtk/empathy-groups-widget.c
index 5d87ef4f4..7d231d403 100644
--- a/libempathy-gtk/empathy-groups-widget.c
+++ b/libempathy-gtk/empathy-groups-widget.c
@@ -151,7 +151,6 @@ populate_data (EmpathyGroupsWidget *self)
{
EmpathyGroupsWidgetPriv *priv = GET_PRIV (self);
EmpathyConnectionAggregator *aggregator;
- GtkTreeIter iter;
GeeSet *member_groups;
GList *all_groups, *l;
@@ -176,8 +175,7 @@ populate_data (EmpathyGroupsWidget *self)
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,
@@ -236,13 +234,11 @@ add_group_button_clicked_cb (GtkButton *button,
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);