diff options
| author | WizardOhio24 <rdmenzies2000@gmail.com> | 2019-01-26 12:34:38 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2019-02-11 10:43:57 +0000 |
| commit | eca63dcdbc425e44e353e93e8760a69e9b1f2d83 (patch) | |
| tree | a0543f620fe961b6a86aba36cc82a7e44fb40d12 /src/verbs.cpp | |
| parent | Bundle python-numpy and python-scour (diff) | |
| download | inkscape-eca63dcdbc425e44e353e93e8760a69e9b1f2d83.tar.gz inkscape-eca63dcdbc425e44e353e93e8760a69e9b1f2d83.zip | |
Added Feature: Recenter page in window, Ctrl+4 shortcut
Diffstat (limited to 'src/verbs.cpp')
| -rw-r--r-- | src/verbs.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/verbs.cpp b/src/verbs.cpp index deedecf75..352ed857d 100644 --- a/src/verbs.cpp +++ b/src/verbs.cpp @@ -1999,6 +1999,9 @@ void ZoomVerb::perform(SPAction *action, void *data) case SP_VERB_ZOOM_PREV: dt->prev_transform(); break; + case SP_VERB_ZOOM_CENTER_PAGE: + dt->zoom_center_page(); + break; case SP_VERB_ROTATE_CW: { gint mul = 1 + Inkscape::UI::Tools::gobble_key_events( GDK_KEY_parenleft, 0); @@ -3054,6 +3057,8 @@ Verb *Verb::_base_verbs[] = { INKSCAPE_ICON("zoom-fit-drawing")), new ZoomVerb(SP_VERB_ZOOM_SELECTION, "ZoomSelection", N_("_Selection"), N_("Zoom to fit selection in window"), INKSCAPE_ICON("zoom-fit-selection")), + new ZoomVerb(SP_VERB_ZOOM_CENTER_PAGE, "ZoomCenterPage", N_("_Center _Page"), N_("Centre page in window"), + INKSCAPE_ICON("zoom-center-page")), new ZoomVerb(SP_VERB_ROTATE_CW, "RotateClockwise", N_("Rotate Clockwise"), N_("Rotate canvas clockwise"), nullptr), new ZoomVerb(SP_VERB_ROTATE_CCW, "RotateCounterClockwise", N_("Rotate Counter-Clockwise"), |
