summaryrefslogtreecommitdiffstats
path: root/src/verbs.cpp
diff options
context:
space:
mode:
authorMartin Owens <doctormo@gmail.com>2019-03-06 01:58:30 +0000
committerMartin Owens <doctormo@gmail.com>2019-03-06 01:58:30 +0000
commite5bf2580b421854298c4d2eaa62f9324ed03f81c (patch)
tree574232d8b2fa35b08210b337f6a868dfca4f2b09 /src/verbs.cpp
parentRevert modal fix to fix #108 (diff)
parentChanged tabs to spaces (diff)
downloadinkscape-e5bf2580b421854298c4d2eaa62f9324ed03f81c.tar.gz
inkscape-e5bf2580b421854298c4d2eaa62f9324ed03f81c.zip
Merge addition of center on page button
Diffstat (limited to 'src/verbs.cpp')
-rw-r--r--src/verbs.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/verbs.cpp b/src/verbs.cpp
index c57b587eb..d56d9801f 100644
--- a/src/verbs.cpp
+++ b/src/verbs.cpp
@@ -1956,6 +1956,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);
@@ -2987,6 +2990,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_("Center 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"),