[gtk+/wip/baedert/gtkimageview: 85/139] 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: 85/139] GtkImageView: Using the scale gesture unsets fit-allocation
- Date: Sat, 16 Apr 2016 16:47:06 +0000 (UTC)
commit d3fb5ac34aa41e7468650a53ac8000cab67ec254
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]