summaryrefslogtreecommitdiff
path: root/libview/ev-view-private.h
diff options
context:
space:
mode:
authorClement Lefebvre <[email protected]>2017-03-14 13:47:19 +0000
committerraveit65 <[email protected]>2017-08-18 21:18:30 +0200
commit42768626e77556ca28a627e18db87ff7e3d4a61e (patch)
tree68f4b242998e6e757c56f64cd5665683c0806a28 /libview/ev-view-private.h
parent126fb75a05e5dccc468738fc614e145728b60613 (diff)
downloadatril-42768626e77556ca28a627e18db87ff7e3d4a61e.tar.bz2
atril-42768626e77556ca28a627e18db87ff7e3d4a61e.tar.xz
ev-view: Add pinch/zoom gesture to handle document zooming
This is delegated on a GtkGestureZoom. When triggered, the document will be zoomed based on the distance changes between both fingers. When the gesture is not active, regular event handling (text selection, clicking, etc...) will happen. Upstream commit from garnacho on 28 Mar 2014: https://github.com/GNOME/evince/commit/36c7f21
Diffstat (limited to 'libview/ev-view-private.h')
-rw-r--r--libview/ev-view-private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libview/ev-view-private.h b/libview/ev-view-private.h
index 8957dad8..6e41d2ad 100644
--- a/libview/ev-view-private.h
+++ b/libview/ev-view-private.h
@@ -202,6 +202,10 @@ struct _EvView {
/* Accessibility */
AtkObject *accessible;
+
+ /* Gestures */
+ GtkGesture *zoom_gesture;
+ gdouble prev_zoom_gesture_scale;
};
struct _EvViewClass {