From eca63dcdbc425e44e353e93e8760a69e9b1f2d83 Mon Sep 17 00:00:00 2001 From: WizardOhio24 Date: Sat, 26 Jan 2019 12:34:38 +0000 Subject: Added Feature: Recenter page in window, Ctrl+4 shortcut --- src/verbs.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/verbs.cpp') 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"), -- cgit v1.2.3 From 3e644d854623d837c88807b9dc8791aa9e06aebe Mon Sep 17 00:00:00 2001 From: WizardOhio24 Date: Sat, 26 Jan 2019 15:26:31 +0000 Subject: Updated inkscape.pot to include Center page in window --- src/verbs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/verbs.cpp') diff --git a/src/verbs.cpp b/src/verbs.cpp index 352ed857d..827296463 100644 --- a/src/verbs.cpp +++ b/src/verbs.cpp @@ -3057,7 +3057,7 @@ 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"), + new ZoomVerb(SP_VERB_ZOOM_CENTER_PAGE, "ZoomCenterPage", N_("_Center _Page"), N_("Center page in window"), INKSCAPE_ICON("zoom-center-page")), new ZoomVerb(SP_VERB_ROTATE_CW, "RotateClockwise", N_("Rotate Clockwise"), N_("Rotate canvas clockwise"), nullptr), -- cgit v1.2.3