[empathy] Follow the new tree store insertion convention used by the contact list store in the individual stor



commit d714360e053a1e2c75d63cbc8497453a689cfd39
Author: Travis Reitter <treitter gmail com>
Date:   Sat Jun 26 11:22:05 2010 -0700

    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 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/libempathy-gtk/empathy-individual-store.c b/libempathy-gtk/empathy-individual-store.c
index 95f236a..a75ec3a 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)
         {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]