From 813daa2a8e1e5c46afbf01c12d5c989ae74efa34 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 29 Mar 2012 15:12:10 +0200 Subject: preferences: use gtk_list_store_insert_with_values() --- src/empathy-preferences.c | 4 +--- 1 file changed, 1 insertion(+), 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); -- cgit v1.2.3