[empathy] preferences: use gtk_list_store_insert_with_values()
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] preferences: use gtk_list_store_insert_with_values()
- Date: Thu, 29 Mar 2012 13:33:50 +0000 (UTC)
commit 813daa2a8e1e5c46afbf01c12d5c989ae74efa34
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Mar 29 15:12:10 2012 +0200
preferences: use gtk_list_store_insert_with_values()
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 77ec49c..14f1780 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]