aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/empathy-preferences.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/empathy-preferences.c b/src/empathy-preferences.c
index 77ec49c26..14f178072 100644
--- a/src/empathy-preferences.c
+++ b/src/empathy-preferences.c
@@ -506,7 +506,6 @@ preferences_languages_add (EmpathyPreferences *preferences)
}
for (l = codes; l; l = l->next) {
- GtkTreeIter iter;
const gchar *code;
const gchar *name;
@@ -516,8 +515,7 @@ preferences_languages_add (EmpathyPreferences *preferences)
continue;
}
- gtk_list_store_append (store, &iter);
- gtk_list_store_set (store, &iter,
+ gtk_list_store_insert_with_values (store, NULL, -1,
COL_LANG_CODE, code,
COL_LANG_NAME, name,
-1);