[Goodies-commits] r3062 - ristretto/trunk/src

Stephan Arts stephan at xfce.org
Fri Aug 24 09:26:16 CEST 2007


Author: stephan
Date: 2007-08-24 07:26:15 +0000 (Fri, 24 Aug 2007)
New Revision: 3062

Modified:
   ristretto/trunk/src/navigator.c
   ristretto/trunk/src/thumbnail_viewer.c
Log:
make it show all thumbnails

Modified: ristretto/trunk/src/navigator.c
===================================================================
--- ristretto/trunk/src/navigator.c	2007-08-24 05:22:38 UTC (rev 3061)
+++ ristretto/trunk/src/navigator.c	2007-08-24 07:26:15 UTC (rev 3062)
@@ -340,7 +340,10 @@
         g_list_foreach(navigator->file_list, (GFunc)rstto_navigator_entry_free, NULL);
         navigator->file_list = NULL;
         navigator->file_iter = NULL;
+        navigator->old_position = 0;
     }
+    g_signal_emit(G_OBJECT(navigator), rstto_navigator_signals[RSTTO_NAVIGATOR_SIGNAL_REORDERED], 0, NULL);
+    
 }
 
 void

Modified: ristretto/trunk/src/thumbnail_viewer.c
===================================================================
--- ristretto/trunk/src/thumbnail_viewer.c	2007-08-24 05:22:38 UTC (rev 3061)
+++ ristretto/trunk/src/thumbnail_viewer.c	2007-08-24 07:26:15 UTC (rev 3062)
@@ -164,6 +164,16 @@
     gint border_width =  0;
     widget->allocation = *allocation;
 
+    if (GTK_WIDGET_REALIZED (widget))
+    {
+         gdk_window_move_resize (widget->window,
+            allocation->x + border_width,
+            allocation->y + border_width,
+            allocation->width - border_width * 2,
+            allocation->height - border_width * 2);
+
+    }
+
     switch(viewer->priv->orientation)
     {
         case GTK_ORIENTATION_HORIZONTAL:
@@ -179,15 +189,6 @@
     }
 
 
-    if (GTK_WIDGET_REALIZED (widget))
-    {
-         gdk_window_move_resize (widget->window,
-            allocation->x + border_width,
-            allocation->y + border_width,
-            allocation->width - border_width * 2,
-            allocation->height - border_width * 2);
-
-    }
 }
 
 static void
@@ -523,10 +524,6 @@
                 viewer->priv->begin = 0;
                 viewer->priv->end = widget->allocation.width / viewer->priv->dimension;
             }
-            if (viewer->priv->end >= rstto_navigator_get_n_files(nav))
-            {
-                viewer->priv->end = rstto_navigator_get_n_files(nav) - 1;
-            }
             if (viewer->priv->offset == old_offset)
             {
                 rstto_thumbnail_viewer_paint_entry(viewer, rstto_navigator_get_old_position(viewer->priv->navigator), FALSE);
@@ -569,7 +566,10 @@
 static void
 cb_rstto_thumbnailer_nav_reordered (RsttoNavigator *nav, RsttoThumbnailViewer *viewer)
 {
-
+    if (GTK_WIDGET_REALIZED(viewer))
+    {
+        rstto_thumbnail_viewer_paint(viewer);
+    }
 }
 
 static gboolean




More information about the Goodies-commits mailing list