[Xfce4-commits] <ristretto:ristretto-0.2> Fix Bug #8097 - Prevent thumbnails from disappearing.

Stephan Arts noreply at xfce.org
Thu Nov 3 10:44:05 CET 2011


Updating branch refs/heads/ristretto-0.2
         to 981ebd6b99e13961c7cebd0ed6325245a3a69614 (commit)
       from c0a0e13cbe0702e103f9580c898c289edab2cc5d (commit)

commit 981ebd6b99e13961c7cebd0ed6325245a3a69614
Author: Stephan Arts <stephan at xfce.org>
Date:   Thu Nov 3 10:40:19 2011 +0100

    Fix Bug #8097 - Prevent thumbnails from disappearing.

 src/thumbnail_bar.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/thumbnail_bar.c b/src/thumbnail_bar.c
index 27be636..48bdecb 100644
--- a/src/thumbnail_bar.c
+++ b/src/thumbnail_bar.c
@@ -806,7 +806,7 @@ cb_rstto_thumbnail_bar_scroll_event (RsttoThumbnailBar *bar,
                         thumb_size = GTK_WIDGET(bar->priv->thumbs->data)->allocation.width;
                         for (thumb = bar->priv->thumbs; thumb != NULL; thumb = g_list_next(thumb))
                         {
-                            size += thumb_size * g_list_length (bar->priv->thumbs);
+                            size += GTK_WIDGET(thumb->data)->allocation.width;
                             if (g_list_next (thumb))
                                 size += spacing;
                         }


More information about the Xfce4-commits mailing list