summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-12-06 21:39:31 +0000
committerjabiertxof <jabier.arraiza@marker.es>2015-12-06 21:39:31 +0000
commit266cd1e5c43e6a46cd37f7db5138270b80d0944e (patch)
tree23551448562ae436d9408f03bdb11b1128948cfd /src/ui
parentChanged from Desktop to namedview to handle multiples documents (diff)
downloadinkscape-266cd1e5c43e6a46cd37f7db5138270b80d0944e.tar.gz
inkscape-266cd1e5c43e6a46cd37f7db5138270b80d0944e.zip
Fixes UX pointed in suv review
(bzr r14500.1.9)
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/interface.cpp3
-rw-r--r--src/ui/view/edit-widget-interface.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/interface.cpp b/src/ui/interface.cpp
index 0f719b40f..dc49283d5 100644
--- a/src/ui/interface.cpp
+++ b/src/ui/interface.cpp
@@ -577,6 +577,9 @@ static gboolean checkitem_update(GtkWidget *widget, GdkEventExpose * /*event*/,
if (!strcmp(action->id, "ToggleGrid")) {
ison = dt->gridsEnabled();
}
+ else if (!strcmp(action->id, "EditGuidesToggleLock")) {
+ ison = dt->namedview->lockguides;
+ }
else if (!strcmp(action->id, "ToggleGuides")) {
ison = dt->namedview->getGuides();
}
diff --git a/src/ui/view/edit-widget-interface.h b/src/ui/view/edit-widget-interface.h
index 55683871d..fcba0c6da 100644
--- a/src/ui/view/edit-widget-interface.h
+++ b/src/ui/view/edit-widget-interface.h
@@ -116,6 +116,9 @@ struct EditWidgetInterface
/// Toggle CMS on/off and set preference value accordingly
virtual void toggleColorProfAdjust() = 0;
+ /// Toggle lock guides on/off and set namedview value accordingly
+ virtual void toggleGuidesLock() = 0;
+
/// Is CMS on/off
virtual bool colorProfAdjustEnabled() = 0;