[Xfce4-commits] <ristretto:stephan/icon-bar> Emit row-deleted signals for each image.

Stephan Arts noreply at xfce.org
Sun Jan 29 22:16:02 CET 2012


Updating branch refs/heads/stephan/icon-bar
         to 553b263b19c9816071a6c579ae8f9a5c792c813c (commit)
       from b828d91b2aa900210cc132785b5ef63384e3492d (commit)

commit 553b263b19c9816071a6c579ae8f9a5c792c813c
Author: Stephan Arts <stephan at xfce.org>
Date:   Sun Jan 29 22:13:34 2012 +0100

    Emit row-deleted signals for each image.
    
     - This should be improved, but for now it helps
       debugging the icon-bar.

 src/image_list.c |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/src/image_list.c b/src/image_list.c
index f82825e..a2af888 100644
--- a/src/image_list.c
+++ b/src/image_list.c
@@ -530,6 +530,23 @@ static void
 rstto_image_list_remove_all (RsttoImageList *image_list)
 {
     GSList *iter = NULL;
+    GList *image_iter = image_list->priv->images;
+    GtkTreePath *path_ = NULL;
+    gint i = g_list_length (image_iter);
+
+    while (image_iter)
+    {
+        i--;
+        path_ = gtk_tree_path_new();
+        gtk_tree_path_append_index(path_, i);
+
+        gtk_tree_model_row_deleted(GTK_TREE_MODEL(image_list), path_);
+
+        
+        image_iter = g_list_next (image_iter);     
+    }
+
+    
 
     g_list_foreach (image_list->priv->images, (GFunc)g_object_unref, NULL);
     g_list_free (image_list->priv->images);


More information about the Xfce4-commits mailing list