[gtk+/wip/baedert/gtkimageview: 46001/46001] GtkImageView: Using the scale gesture unsets fit-allocation
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/gtkimageview: 46001/46001] GtkImageView: Using the scale gesture unsets fit-allocation
- Date: Wed, 27 Jan 2016 15:29:17 +0000 (UTC)
commit c5540fa9e149b0ad9e28439938a155460f933c43
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]