Commit 6ff6694e authored by Xavier Claessens's avatar Xavier Claessens

Use gtk_list_store_insert_with_values ().

svn path=/trunk/; revision=2101
parent 143f7103
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment