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

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


Updating branch refs/heads/master
         to e732dfb1f1c543952b73197508804b0da3ca6fe6 (commit)
       from 3ed7564a8bde6e321e1411cab58959b20e1f6914 (commit)

commit e732dfb1f1c543952b73197508804b0da3ca6fe6
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 6843f07..a7a739b 100644
--- a/src/image_viewer.c
+++ b/src/image_viewer.c
@@ -1616,6 +1616,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