[Xfce4-commits] <ristretto:stephan/icon-bar> Send tree_model_delete_row when removing a single file from the image-list.

Stephan Arts noreply at xfce.org
Thu Feb 2 07:20:01 CET 2012


Updating branch refs/heads/stephan/icon-bar
         to d33d6e7c5060c7cc2f12745445c29ace0e596a65 (commit)
       from c3aedb198954ffebab1a2b8b4883f7b2dedb946b (commit)

commit d33d6e7c5060c7cc2f12745445c29ace0e596a65
Author: Stephan Arts <stephan at xfce.org>
Date:   Thu Feb 2 07:18:10 2012 +0100

    Send tree_model_delete_row when removing a single file from the image-list.

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

diff --git a/src/image_list.c b/src/image_list.c
index 0539239..a0afc9d 100644
--- a/src/image_list.c
+++ b/src/image_list.c
@@ -493,6 +493,7 @@ rstto_image_list_remove_file (RsttoImageList *image_list, RsttoFile *file)
 {
     GSList *iter = NULL;
     RsttoFile *afile = NULL;
+    GtkTreePath *path_ = NULL;
 
     if (g_list_find(image_list->priv->images, file))
     {
@@ -502,6 +503,12 @@ rstto_image_list_remove_file (RsttoImageList *image_list, RsttoFile *file)
         {
             if (rstto_file_equal(rstto_image_list_iter_get_file (iter->data), file))
             {
+                
+                path_ = gtk_tree_path_new();
+                gtk_tree_path_append_index(path_,rstto_image_list_iter_get_position (iter->data));
+
+                gtk_tree_model_row_deleted(GTK_TREE_MODEL(image_list), path_);
+
                 if (rstto_image_list_iter_get_position (iter->data) == rstto_image_list_get_n_images (image_list)-1)
                 {
                     iter_previous (iter->data, FALSE);


More information about the Xfce4-commits mailing list