diff options
author | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2008-11-22 00:18:45 +0800 |
---|---|---|
committer | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2008-11-22 00:18:45 +0800 |
commit | 2bc09b488898c66fbc09033855ec92a32222a982 (patch) | |
tree | a4e102ccfbb0c751574b81a6e5f3887a86636a83 | |
parent | 074b1f659c516671ba9b922ba4650621f21ee247 (diff) | |
download | gsoc2013-empathy-2bc09b488898c66fbc09033855ec92a32222a982.tar gsoc2013-empathy-2bc09b488898c66fbc09033855ec92a32222a982.tar.gz gsoc2013-empathy-2bc09b488898c66fbc09033855ec92a32222a982.tar.bz2 gsoc2013-empathy-2bc09b488898c66fbc09033855ec92a32222a982.tar.lz gsoc2013-empathy-2bc09b488898c66fbc09033855ec92a32222a982.tar.xz gsoc2013-empathy-2bc09b488898c66fbc09033855ec92a32222a982.tar.zst gsoc2013-empathy-2bc09b488898c66fbc09033855ec92a32222a982.zip |
Simplified code to add files to the list store. (Jonny Lamb)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@1815 4ee84921-47dd-4033-b63a-18d7a039a3e4
-rw-r--r-- | libempathy-gtk/empathy-ft-manager.c | 5 |
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); |