aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-preferences.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-03-29 21:12:10 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-03-29 21:24:55 +0800
commit813daa2a8e1e5c46afbf01c12d5c989ae74efa34 (patch)
treee8886a1e7fed8ef28af4a3f795464af2b624aad0 /src/empathy-preferences.c
parent07e7bd3fc715b1d6a35cb160abdf2ccc1ea595fa (diff)
downloadgsoc2013-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.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);