aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2009-01-07 00:50:02 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-01-07 00:50:02 +0800
commit6ff6694e813ff981b17af7053f2b667e2b1783bc (patch)
treed7845cf0c440baf593523d7d75a2e9b6e8594d08
parent143f710325d8bfe6bfd2d271f332e504a06de9e8 (diff)
downloadgsoc2013-empathy-6ff6694e813ff981b17af7053f2b667e2b1783bc.tar
gsoc2013-empathy-6ff6694e813ff981b17af7053f2b667e2b1783bc.tar.gz
gsoc2013-empathy-6ff6694e813ff981b17af7053f2b667e2b1783bc.tar.bz2
gsoc2013-empathy-6ff6694e813ff981b17af7053f2b667e2b1783bc.tar.lz
gsoc2013-empathy-6ff6694e813ff981b17af7053f2b667e2b1783bc.tar.xz
gsoc2013-empathy-6ff6694e813ff981b17af7053f2b667e2b1783bc.tar.zst
gsoc2013-empathy-6ff6694e813ff981b17af7053f2b667e2b1783bc.zip
Use gtk_list_store_insert_with_values ().
svn path=/trunk/; revision=2101
-rw-r--r--src/empathy-preferences.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/empathy-preferences.c b/src/empathy-preferences.c
index 4d1eb4eb3..75e51c7ef 100644
--- a/src/empathy-preferences.c
+++ b/src/empathy-preferences.c
@@ -288,10 +288,9 @@ preferences_sound_load (EmpathyPreferences *preferences)
for (i = 0; i < G_N_ELEMENTS (sound_entries); i++) {
empathy_conf_get_bool (conf, sound_entries[i].key, &set);
- gtk_list_store_append (store, &iter);
- gtk_list_store_set (store, &iter, COL_SOUND_ENABLED, set,
- COL_SOUND_NAME, gettext (sound_entries[i].name),
- COL_SOUND_KEY, sound_entries[i].key, -1);
+ gtk_list_store_insert_with_values (store, &iter, i,
+ COL_SOUND_NAME, gettext (sound_entries[i].name),
+ COL_SOUND_KEY, sound_entries[i].key, -1);
}
}