From 580e4fa77018dc57cfd88e229fb21b1d87dfd3dd Mon Sep 17 00:00:00 2001 From: Lars Mueller Date: Wed, 30 Aug 2017 14:57:59 +0200 Subject: Add zoom reset origin commit: https://github.com/linuxmint/xreader/commit/43acb8f --- previewer/ev-previewer-window.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'previewer') diff --git a/previewer/ev-previewer-window.c b/previewer/ev-previewer-window.c index 1979d954..38848e39 100644 --- a/previewer/ev-previewer-window.c +++ b/previewer/ev-previewer-window.c @@ -138,6 +138,14 @@ ev_previewer_window_zoom_out (GtkAction *action, ev_view_zoom_out (window->view); } +static void +ev_previewer_window_zoom_reset (GtkAction *action, + EvPreviewerWindow *window) +{ + ev_document_model_set_sizing_mode (window->model, EV_SIZING_FREE); + ev_view_zoom_reset (window->view); +} + static void ev_previewer_window_zoom_fit_page (GtkToggleAction *action, EvPreviewerWindow *window) @@ -284,6 +292,9 @@ static const GtkActionEntry action_entries[] = { { "ViewZoomOut", "zoom-out", N_("Zoom _Out"), "minus", N_("Shrink the document"), G_CALLBACK (ev_previewer_window_zoom_out) }, + { "ViewZoomReset", "zoom-original", NULL, "0", + N_("Reset zoom to 100\%"), + G_CALLBACK (ev_previewer_window_zoom_reset) }, #if GTKUNIXPRINT_ENABLED /* translators: Print document currently shown in the Print Preview window */ { "PreviewPrint", "document-print", N_("Print"), NULL, -- cgit v1.2.1