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:34 +0800 |
commit | 297eb577229dd46d1ed26255908c9802b5267372 (patch) | |
tree | cc01f25816225f3f8933fcbeec2aab30e21c6a8e | |
parent | 2736d7a4010eb83102e4e455a1133487d2612bd4 (diff) | |
download | gsoc2013-empathy-297eb577229dd46d1ed26255908c9802b5267372.tar gsoc2013-empathy-297eb577229dd46d1ed26255908c9802b5267372.tar.gz gsoc2013-empathy-297eb577229dd46d1ed26255908c9802b5267372.tar.bz2 gsoc2013-empathy-297eb577229dd46d1ed26255908c9802b5267372.tar.lz gsoc2013-empathy-297eb577229dd46d1ed26255908c9802b5267372.tar.xz gsoc2013-empathy-297eb577229dd46d1ed26255908c9802b5267372.tar.zst gsoc2013-empathy-297eb577229dd46d1ed26255908c9802b5267372.zip |
import-widget: use gtk_list_store_insert_with_values()
-rw-r--r-- | src/empathy-import-widget.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/empathy-import-widget.c b/src/empathy-import-widget.c index 6a2d24a81..b65e0c0cf 100644 --- a/src/empathy-import-widget.c +++ b/src/empathy-import-widget.c @@ -99,7 +99,6 @@ import_widget_add_accounts_to_model (EmpathyImportWidget *self) { TpAccountManager *manager; GtkTreeModel *model; - GtkTreeIter iter; GList *l; EmpathyImportWidgetPriv *priv = GET_PRIV (self); gint min, natural; @@ -133,9 +132,7 @@ import_widget_add_accounts_to_model (EmpathyImportWidget *self) g_list_free (accounts); - gtk_list_store_append (GTK_LIST_STORE (model), &iter); - - gtk_list_store_set (GTK_LIST_STORE (model), &iter, + gtk_list_store_insert_with_values (GTK_LIST_STORE (model), NULL, -1, COL_IMPORT, import, COL_PROTOCOL, data->protocol, COL_NAME, g_value_get_string (value), |