summaryrefslogtreecommitdiffstats
path: root/src/verbs.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-12-05 22:55:57 +0000
committerjabiertxof <jabier.arraiza@marker.es>2015-12-05 22:55:57 +0000
commite649a1d9cd29f39b2d1cf343cec97ccebce9cf08 (patch)
treeecd97a46bd8a11da9941374d93eb1c32240394a6 /src/verbs.cpp
parentupdate to trunk (diff)
downloadinkscape-e649a1d9cd29f39b2d1cf343cec97ccebce9cf08.tar.gz
inkscape-e649a1d9cd29f39b2d1cf343cec97ccebce9cf08.zip
Changed from Desktop to namedview to handle multiples documents
(bzr r14500.1.8)
Diffstat (limited to 'src/verbs.cpp')
-rw-r--r--src/verbs.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/verbs.cpp b/src/verbs.cpp
index 6eace6048..afcc37bc4 100644
--- a/src/verbs.cpp
+++ b/src/verbs.cpp
@@ -1938,6 +1938,9 @@ void ZoomVerb::perform(SPAction *action, void *data)
case SP_VERB_TOGGLE_GUIDES:
sp_namedview_toggle_guides(doc, repr);
break;
+ case SP_VERB_TOGGLE_GUIDES_LOCK:
+ sp_namedview_toggle_guides_lock(doc, repr);
+ break;
case SP_VERB_TOGGLE_SNAPPING:
dt->toggleSnapGlobal();
break;
@@ -1989,9 +1992,6 @@ void ZoomVerb::perform(SPAction *action, void *data)
case SP_VERB_VIEW_CMS_TOGGLE:
dt->toggleColorProfAdjust();
break;
- case SP_VERB_VIEW_GUIDES_LOCK_TOGGLE:
- dt->toggleGuidesLock();
- break;
case SP_VERB_VIEW_ICON_PREVIEW:
INKSCAPE.dialogs_unhide();
dt->_dlg_mgr->showDialog("IconPreviewPanel");
@@ -2831,6 +2831,7 @@ Verb *Verb::_base_verbs[] = {
new ZoomVerb(SP_VERB_TOGGLE_SCROLLBARS, "ToggleScrollbars", N_("Scroll_bars"), N_("Show or hide the canvas scrollbars"), NULL),
new ZoomVerb(SP_VERB_TOGGLE_GRID, "ToggleGrid", N_("Page _Grid"), N_("Show or hide the page grid"), INKSCAPE_ICON("show-grid")),
new ZoomVerb(SP_VERB_TOGGLE_GUIDES, "ToggleGuides", N_("G_uides"), N_("Show or hide guides (drag from a ruler to create a guide)"), INKSCAPE_ICON("show-guides")),
+ new ZoomVerb(SP_VERB_TOGGLE_GUIDES_LOCK, "ToggleGuidesLook", N_("Gui_des Lock"), N_("Lock or unlock all guides"), INKSCAPE_ICON("object-locked")),
new ZoomVerb(SP_VERB_TOGGLE_SNAPPING, "ToggleSnapGlobal", N_("Snap"), N_("Enable snapping"), INKSCAPE_ICON("snap")),
new ZoomVerb(SP_VERB_TOGGLE_COMMANDS_TOOLBAR, "ToggleCommandsToolbar", N_("_Commands Bar"), N_("Show or hide the Commands bar (under the menu)"), NULL),
new ZoomVerb(SP_VERB_TOGGLE_SNAP_TOOLBAR, "ToggleSnapToolbar", N_("Sn_ap Controls Bar"), N_("Show or hide the snapping controls"), NULL),
@@ -2880,8 +2881,6 @@ Verb *Verb::_base_verbs[] = {
new ZoomVerb(SP_VERB_VIEW_CMS_TOGGLE, "ViewCmsToggle", N_("Color-managed view"),
N_("Toggle color-managed display for this document window"), INKSCAPE_ICON("color-management")),
- new ZoomVerb(SP_VERB_VIEW_GUIDES_LOCK_TOGGLE, "GuidesLockToggle", N_("Lock all guides"),
- N_("Lock all guides"), INKSCAPE_ICON("object-locked")),
new ZoomVerb(SP_VERB_VIEW_ICON_PREVIEW, "ViewIconPreview", N_("Ico_n Preview..."),
N_("Open a window to preview objects at different icon resolutions"), INKSCAPE_ICON("dialog-icon-preview")),