empathy r1815 - trunk/libempathy-gtk



Author: xclaesse
Date: Fri Nov 21 16:18:45 2008
New Revision: 1815
URL: http://svn.gnome.org/viewvc/empathy?rev=1815&view=rev

Log:
Simplified code to add files to the list store. (Jonny Lamb)

Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>

Modified:
   trunk/libempathy-gtk/empathy-ft-manager.c

Modified: trunk/libempathy-gtk/empathy-ft-manager.c
==============================================================================
--- trunk/libempathy-gtk/empathy-ft-manager.c	(original)
+++ trunk/libempathy-gtk/empathy-ft-manager.c	Fri Nov 21 16:18:45 2008
@@ -611,9 +611,8 @@
   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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]