From d714360e053a1e2c75d63cbc8497453a689cfd39 Mon Sep 17 00:00:00 2001 From: Travis Reitter Date: Sat, 26 Jun 2010 11:22:05 -0700 Subject: Follow the new tree store insertion convention used by the contact list store in the individual store. --- libempathy-gtk/empathy-individual-store.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/libempathy-gtk/empathy-individual-store.c b/libempathy-gtk/empathy-individual-store.c index 95f236a13..a75ec3a8a 100644 --- a/libempathy-gtk/empathy-individual-store.c +++ b/libempathy-gtk/empathy-individual-store.c @@ -198,24 +198,25 @@ individual_store_get_group (EmpathyIndividualStore *self, *created = TRUE; } - gtk_tree_store_append (GTK_TREE_STORE (self), &iter_group, NULL); - gtk_tree_store_set (GTK_TREE_STORE (self), &iter_group, + gtk_tree_store_insert_with_values (GTK_TREE_STORE (self), &iter_group, + NULL, 0, EMPATHY_INDIVIDUAL_STORE_COL_ICON_STATUS, NULL, EMPATHY_INDIVIDUAL_STORE_COL_NAME, name, EMPATHY_INDIVIDUAL_STORE_COL_IS_GROUP, TRUE, EMPATHY_INDIVIDUAL_STORE_COL_IS_ACTIVE, FALSE, EMPATHY_INDIVIDUAL_STORE_COL_IS_SEPARATOR, FALSE, - EMPATHY_INDIVIDUAL_STORE_COL_IS_FAKE_GROUP, is_fake_group, -1); + EMPATHY_INDIVIDUAL_STORE_COL_IS_FAKE_GROUP, is_fake_group, + -1); if (iter_group_to_set) { *iter_group_to_set = iter_group; } - gtk_tree_store_append (GTK_TREE_STORE (self), - &iter_separator, &iter_group); - gtk_tree_store_set (GTK_TREE_STORE (self), &iter_separator, - EMPATHY_INDIVIDUAL_STORE_COL_IS_SEPARATOR, TRUE, -1); + gtk_tree_store_insert_with_values (GTK_TREE_STORE (self), &iter_separator, + &iter_group, 0, + EMPATHY_INDIVIDUAL_STORE_COL_IS_SEPARATOR, TRUE, + -1); if (iter_separator_to_set) { -- cgit v1.2.3