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/widgets | |
| 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/widgets')
| -rw-r--r-- | src/widgets/desktop-widget.cpp | 4 | ||||
| -rw-r--r-- | src/widgets/toolbox.cpp | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/widgets/desktop-widget.cpp b/src/widgets/desktop-widget.cpp index 489582ca8..c5810177d 100644 --- a/src/widgets/desktop-widget.cpp +++ b/src/widgets/desktop-widget.cpp @@ -1928,6 +1928,10 @@ SPDesktopWidget::zoom_populate_popup(Gtk::Menu *menu) item_selection->signal_activate().connect(sigc::mem_fun(desktop, &SPDesktop::zoom_selection)); menu->append(*item_selection); + auto item_center_page = Gtk::manage(new Gtk::MenuItem(_("Centre Page"))); + item_center_page->signal_activate().connect(sigc::mem_fun(desktop, &SPDesktop::zoom_center_page)); + menu->append(*item_center_page); + menu->show_all(); } diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp index 38e8df8c0..8b7576d8d 100644 --- a/src/widgets/toolbox.cpp +++ b/src/widgets/toolbox.cpp @@ -340,7 +340,8 @@ static Glib::RefPtr<Gtk::ActionGroup> create_or_fetch_actions( SPDesktop* deskto SP_VERB_ZOOM_PAGE, SP_VERB_ZOOM_PAGE_WIDTH, SP_VERB_ZOOM_PREV, - SP_VERB_ZOOM_SELECTION + SP_VERB_ZOOM_SELECTION, + SP_VERB_ZOOM_CENTER_PAGE }; GtkIconSize toolboxSize = ToolboxFactory::prefToSize("/toolbox/small"); |
