diff options
author | Lars Mueller <[email protected]> | 2017-08-30 14:57:59 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-03-15 19:11:11 +0100 |
commit | 580e4fa77018dc57cfd88e229fb21b1d87dfd3dd (patch) | |
tree | bef8430bcffd40808f1b578fdfdc49005b2947cb /libview/ev-view.c | |
parent | a3ade9fd0cea1bb4a6d0c00cf89ffc546093683a (diff) | |
download | atril-580e4fa77018dc57cfd88e229fb21b1d87dfd3dd.tar.bz2 atril-580e4fa77018dc57cfd88e229fb21b1d87dfd3dd.tar.xz |
Add zoom reset
origin commit:
https://github.com/linuxmint/xreader/commit/43acb8f
Diffstat (limited to 'libview/ev-view.c')
-rw-r--r-- | libview/ev-view.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libview/ev-view.c b/libview/ev-view.c index 545942e3..334540c6 100644 --- a/libview/ev-view.c +++ b/libview/ev-view.c @@ -7088,6 +7088,13 @@ ev_view_zoom_out (EvView *view) ev_view_zoom (view, ZOOM_OUT_FACTOR); } +void +ev_view_zoom_reset (EvView *view) +{ + g_return_if_fail (view->sizing_mode == EV_SIZING_FREE); + ev_document_model_set_scale (view->model, 1.2); +} + static double zoom_for_size_fit_width (gdouble doc_width, gdouble doc_height, |