aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2008-11-22 00:18:45 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-11-22 00:18:45 +0800
commit9af48aa4572ec0a497f4ecebb1852c429fd22da6 (patch)
treea4e102ccfbb0c751574b81a6e5f3887a86636a83
parent4ecbf2073d6637b4a7adaf3470107042147fe72a (diff)
downloadgsoc2013-empathy-9af48aa4572ec0a497f4ecebb1852c429fd22da6.tar
gsoc2013-empathy-9af48aa4572ec0a497f4ecebb1852c429fd22da6.tar.gz
gsoc2013-empathy-9af48aa4572ec0a497f4ecebb1852c429fd22da6.tar.bz2
gsoc2013-empathy-9af48aa4572ec0a497f4ecebb1852c429fd22da6.tar.lz
gsoc2013-empathy-9af48aa4572ec0a497f4ecebb1852c429fd22da6.tar.xz
gsoc2013-empathy-9af48aa4572ec0a497f4ecebb1852c429fd22da6.tar.zst
gsoc2013-empathy-9af48aa4572ec0a497f4ecebb1852c429fd22da6.zip
Simplified code to add files to the list store. (Jonny Lamb)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1815
-rw-r--r--libempathy-gtk/empathy-ft-manager.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-ft-manager.c b/libempathy-gtk/empathy-ft-manager.c
index 80be6417f..f94abccd6 100644
--- a/libempathy-gtk/empathy-ft-manager.c
+++ b/libempathy-gtk/empathy-ft-manager.c
@@ -611,9 +611,8 @@ ft_manager_add_tp_file_to_list (EmpathyFTManager *ft_manager,
gint width = 16;
gint height = 16;
- gtk_list_store_append (GTK_LIST_STORE (ft_manager->priv->model), &iter);
- gtk_list_store_set (GTK_LIST_STORE (ft_manager->priv->model), &iter,
- COL_FT_OBJECT, tp_file, -1);
+ gtk_list_store_insert_with_values (GTK_LIST_STORE (ft_manager->priv->model),
+ &iter, G_MAXINT, COL_FT_OBJECT, tp_file, -1);
path = gtk_tree_model_get_path (GTK_TREE_MODEL (ft_manager->priv->model),
&iter);