summaryrefslogtreecommitdiffstats
path: root/src/object
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2019-07-27 23:01:20 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2019-07-28 08:55:03 +0000
commitc95148c6586247aecc863d1e7847d4a75d676189 (patch)
tree64256051494df2298b94273f7a69b9466175261d /src/object
parentMerge branch 'master' of gitlab.com:asiersarasua/inkscape (diff)
downloadinkscape-c95148c6586247aecc863d1e7847d4a75d676189.tar.gz
inkscape-c95148c6586247aecc863d1e7847d4a75d676189.zip
Add verbs update checkbuttons in menu. Also do improvements requested in https://gitlab.com/inkscape/inkscape/issues/323 and improve XRay rendering
Diffstat (limited to 'src/object')
-rw-r--r--src/object/sp-namedview.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/object/sp-namedview.cpp b/src/object/sp-namedview.cpp
index b17af346c..c22184d52 100644
--- a/src/object/sp-namedview.cpp
+++ b/src/object/sp-namedview.cpp
@@ -990,7 +990,13 @@ void sp_namedview_toggle_guides(SPDocument *doc, Inkscape::XML::Node *repr)
DocumentUndo::setUndoSensitive(doc, false);
sp_repr_set_boolean(repr, "showguides", v);
DocumentUndo::setUndoSensitive(doc, saved);
-
+ SPDesktop *desktop = SP_ACTIVE_DESKTOP;
+ if (desktop) {
+ Inkscape::Verb *verb = Inkscape::Verb::get(SP_VERB_TOGGLE_GUIDES);
+ if (verb) {
+ desktop->_menu_update.emit(verb->get_code());
+ }
+ }
doc->setModifiedSinceSave();
}