summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2019-10-11 11:20:02 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2019-10-11 11:20:02 +0000
commit0edf50060bc64802976e2abad0944ae63f8638ce (patch)
treee1c6ace1dbbd1a09f02f7c5aa37da7278e2ed466 /src
parentFix issue on lagging space panning and resizing canvas pointed br @ede123 in ... (diff)
downloadinkscape-0edf50060bc64802976e2abad0944ae63f8638ce.tar.gz
inkscape-0edf50060bc64802976e2abad0944ae63f8638ce.zip
Remove warnings of unhandled items on Mac check menu items, thanks to Nathan Lee for the help.
Diffstat (limited to 'src')
-rw-r--r--src/ui/desktop/menubar.cpp20
1 files changed, 17 insertions, 3 deletions
diff --git a/src/ui/desktop/menubar.cpp b/src/ui/desktop/menubar.cpp
index 3f5babebb..69ca0037c 100644
--- a/src/ui/desktop/menubar.cpp
+++ b/src/ui/desktop/menubar.cpp
@@ -339,14 +339,28 @@ checkitem_update(Gtk::CheckMenuItem* menuitem, SPAction* action)
} else if (id == "ViewCmsToggle") {
active = dt->colorProfAdjustEnabled();
-
- } else if (id == "ViewModeNormal") {
+ }
+#ifdef GDK_WINDOWING_QUARTZ
+ else if (id == "ViewModeNormal") {
active = true;
+ } else if (id == "ViewModeNoFilters") {
+ active = false;
+
+ } else if (id == "ViewModeOutline") {
+ active = false;
+
+ } else if (id == "ViewModeVisibleHairlines") {
+ active = false;
+
} else if (id == "ViewColorModeNormal") {
active = true;
- } else if (id == "ViewSplitModeToggle") {
+ } else if (id == "ViewColorModeGrayscale") {
+ active = false;
+ }
+#endif
+ else if (id == "ViewSplitModeToggle") {
active = dt->splitMode();
} else if (id == "ViewXRayToggle") {