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



commit 53b744175d4fbb1ffadbf5be41788f05a0881631
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]