summaryrefslogtreecommitdiff
path: root/libview/ev-view.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.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.h')
-rw-r--r--libview/ev-view.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libview/ev-view.h b/libview/ev-view.h
index 85c942df..31a9bf41 100644
--- a/libview/ev-view.h
+++ b/libview/ev-view.h
@@ -68,6 +68,8 @@ gboolean ev_view_can_zoom_in (EvView *view);
void ev_view_zoom_in (EvView *view);
gboolean ev_view_can_zoom_out (EvView *view);
void ev_view_zoom_out (EvView *view);
+void ev_view_zoom (EvView *view,
+ gdouble factor);
/* Find */
void ev_view_find_next (EvView *view);