diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-03-29 21:12:10 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-03-29 21:24:55 +0800 |
commit | 813daa2a8e1e5c46afbf01c12d5c989ae74efa34 (patch) | |
tree | e8886a1e7fed8ef28af4a3f795464af2b624aad0 /src/empathy-preferences.c | |
parent | 07e7bd3fc715b1d6a35cb160abdf2ccc1ea595fa (diff) | |
download | gsoc2013-empathy-813daa2a8e1e5c46afbf01c12d5c989ae74efa34.tar gsoc2013-empathy-813daa2a8e1e5c46afbf01c12d5c989ae74efa34.tar.gz gsoc2013-empathy-813daa2a8e1e5c46afbf01c12d5c989ae74efa34.tar.bz2 gsoc2013-empathy-813daa2a8e1e5c46afbf01c12d5c989ae74efa34.tar.lz gsoc2013-empathy-813daa2a8e1e5c46afbf01c12d5c989ae74efa34.tar.xz gsoc2013-empathy-813daa2a8e1e5c46afbf01c12d5c989ae74efa34.tar.zst gsoc2013-empathy-813daa2a8e1e5c46afbf01c12d5c989ae74efa34.zip |
preferences: use gtk_list_store_insert_with_values()
Diffstat (limited to 'src/empathy-preferences.c')
-rw-r--r-- | src/empathy-preferences.c | 4 |
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); |