[gtk+/wip/baedert/gtkimageview: 197/205] GtkImageView: Using the scale gesture unsets fit-allocation



commit 310ffffb1fcfbb0c134a95a22ed82d9620de07eb
Author: Timm Bäder <mail baedert org>
Date:   Wed Jan 27 11:30:02 2016 +0100

    GtkImageView: Using the scale gesture unsets fit-allocation

 gtk/gtkimageview.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkimageview.c b/gtk/gtkimageview.c
index 389b2c7..b5a2883 100644
--- a/gtk/gtkimageview.c
+++ b/gtk/gtkimageview.c
@@ -677,6 +677,13 @@ gesture_zoom_changed_cb (GtkGestureZoom *gesture,
       priv->gesture_start_scale = priv->scale;
     }
 
+  if (priv->fit_allocation)
+    {
+      priv->fit_allocation = FALSE;
+      g_object_notify_by_pspec (G_OBJECT (widget),
+                                widget_props[PROP_FIT_ALLOCATION]);
+    }
+
   new_scale = priv->gesture_start_scale * delta;
   gtk_image_view_get_current_state (image_view, &state);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]