[Xfce4-commits] <ristretto:master> Hide thumbnailbar when the only available image is deleted

Stephan Arts noreply at xfce.org
Thu Apr 26 16:56:01 CEST 2012


Updating branch refs/heads/master
         to 604d6877dc68eb624365c1c77d0bffa211362f58 (commit)
       from 94bef9faadcaeb2cbfd2f0fd6346b1e85d81222b (commit)

commit 604d6877dc68eb624365c1c77d0bffa211362f58
Author: Stephan Arts <stephan at xfce.org>
Date:   Thu Apr 26 16:49:17 2012 +0200

    Hide thumbnailbar when the only available image is deleted

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

diff --git a/src/image_list.c b/src/image_list.c
index ec39eb6..e550834 100644
--- a/src/image_list.c
+++ b/src/image_list.c
@@ -575,6 +575,8 @@ rstto_image_list_remove_file (
                         rstto_image_list_iter_get_file (iter->data),
                         r_file ) )
                 {
+
+                    image_list->priv->images = g_list_remove (image_list->priv->images, r_file);
                     ((RsttoImageListIter *)(iter->data))->priv->r_file = NULL;
                     g_signal_emit (
                             G_OBJECT (iter->data),
@@ -586,12 +588,13 @@ rstto_image_list_remove_file (
             iter = g_slist_next (iter);
         }
 
+        image_list->priv->images = g_list_remove (image_list->priv->images, r_file);
+
         path_ = gtk_tree_path_new();
         gtk_tree_path_append_index(path_,index_);
 
         gtk_tree_model_row_deleted(GTK_TREE_MODEL(image_list), path_);
 
-        image_list->priv->images = g_list_remove (image_list->priv->images, r_file);
         iter = image_list->priv->iterators;
         while (iter)
         {


More information about the Xfce4-commits mailing list