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-web-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-web-view.c')
-rw-r--r-- | libview/ev-web-view.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libview/ev-web-view.c b/libview/ev-web-view.c index 6e302660..5a101f6b 100644 --- a/libview/ev-web-view.c +++ b/libview/ev-web-view.c @@ -687,6 +687,17 @@ ev_web_view_zoom_out(EvWebView *webview) return TRUE; } +gboolean +ev_web_view_zoom_reset(EvWebView *webview) +{ + if (webview->zoom_level == 1) + return FALSE; + + webkit_web_view_set_zoom_level (WEBKIT_WEB_VIEW(webview), + 1.0); + return TRUE; +} + /** * ev_web_view_disconnect_handlers * @webview : #EvWebView instance |