[empathy] groups-widget: use gtk_list_store_insert_with_values()
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] groups-widget: use gtk_list_store_insert_with_values()
- Date: Thu, 29 Mar 2012 13:33:30 +0000 (UTC)
commit 30e1511b7d5ea2e98c948e6a8ffffef937544d6e
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Mar 29 15:12:10 2012 +0200
groups-widget: use gtk_list_store_insert_with_values()
libempathy-gtk/empathy-groups-widget.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/libempathy-gtk/empathy-groups-widget.c b/libempathy-gtk/empathy-groups-widget.c
index 5d87ef4..7d231d4 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]