diff options
author | Travis Reitter <treitter@gmail.com> | 2010-06-27 02:22:05 +0800 |
---|---|---|
committer | Travis Reitter <treitter@gmail.com> | 2010-07-21 07:12:35 +0800 |
commit | d714360e053a1e2c75d63cbc8497453a689cfd39 (patch) | |
tree | 8be37bcdf351c794cde07443f6caf4909c564076 /libempathy-gtk | |
parent | 0dea2287893dc5cf657bb48c2707e30139118cb4 (diff) | |
download | gsoc2013-empathy-d714360e053a1e2c75d63cbc8497453a689cfd39.tar gsoc2013-empathy-d714360e053a1e2c75d63cbc8497453a689cfd39.tar.gz gsoc2013-empathy-d714360e053a1e2c75d63cbc8497453a689cfd39.tar.bz2 gsoc2013-empathy-d714360e053a1e2c75d63cbc8497453a689cfd39.tar.lz gsoc2013-empathy-d714360e053a1e2c75d63cbc8497453a689cfd39.tar.xz gsoc2013-empathy-d714360e053a1e2c75d63cbc8497453a689cfd39.tar.zst gsoc2013-empathy-d714360e053a1e2c75d63cbc8497453a689cfd39.zip |
Follow the new tree store insertion convention used by the contact list store in the individual store.
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | 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 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) { |