[gtk+/wip/baedert/gtkimageview: 169/228] 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: 169/228] GtkImageView: Using the scale gesture unsets fit-allocation
- Date: Tue, 5 Jul 2016 18:44:51 +0000 (UTC)
commit fa23ea8c0a2555202a8002887641d0a1ca10c6ae
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]