From 6ff6694e813ff981b17af7053f2b667e2b1783bc Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Tue, 6 Jan 2009 16:50:02 +0000 Subject: Use gtk_list_store_insert_with_values (). svn path=/trunk/; revision=2101 --- src/empathy-preferences.c | 7 +++---- 1 file 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); } } -- cgit v1.2.3