[Xfce4-commits] <ristretto:ristretto-0.3> Reset the adjustment-limits on closing the image

Stephan Arts noreply at xfce.org
Wed Apr 18 22:24:03 CEST 2012


Updating branch refs/heads/ristretto-0.3
         to 8208c8c0d5142d4d65fba25008d564a783e89564 (commit)
       from 2dda1fadf7ac211418159bd589a6ac77f096624d (commit)

commit 8208c8c0d5142d4d65fba25008d564a783e89564
Author: Stephan Arts <stephan at xfce.org>
Date:   Wed Apr 18 22:22:01 2012 +0200

    Reset the adjustment-limits on closing the image

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

diff --git a/src/image_viewer.c b/src/image_viewer.c
index f954b88..46b1110 100644
--- a/src/image_viewer.c
+++ b/src/image_viewer.c
@@ -1474,6 +1474,10 @@ rstto_image_viewer_set_file (
             g_object_unref (viewer->priv->file);
             viewer->priv->file = NULL;
 
+            /* Reset the image-size to 0.0 */
+            viewer->priv->image_height = 0.0;
+            viewer->priv->image_width = 0.0;
+
             g_object_freeze_notify(G_OBJECT(viewer->hadjustment));
             g_object_freeze_notify(G_OBJECT(viewer->vadjustment));
 


More information about the Xfce4-commits mailing list