summaryrefslogtreecommitdiffstats
path: root/src/ui/desktop
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2019-10-15 20:46:42 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2019-10-15 20:46:42 +0000
commit13d291eed92483e25724955a13ab21504336fb5f (patch)
tree2381e0d8372bfadd07eeb2cdb80eccde266192f3 /src/ui/desktop
parentFix crash caused by e6d70fa8d497b2d75a837aa22e5876943de9fede (diff)
downloadinkscape-13d291eed92483e25724955a13ab21504336fb5f.tar.gz
inkscape-13d291eed92483e25724955a13ab21504336fb5f.zip
Add checkboxes in flip menu options
Diffstat (limited to 'src/ui/desktop')
-rw-r--r--src/ui/desktop/menubar.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/desktop/menubar.cpp b/src/ui/desktop/menubar.cpp
index 69ca0037c..059d74c93 100644
--- a/src/ui/desktop/menubar.cpp
+++ b/src/ui/desktop/menubar.cpp
@@ -390,6 +390,12 @@ checkitem_update(Gtk::CheckMenuItem* menuitem, SPAction* action)
} else if (id == "ToggleStatusbar") {
active = getStateFromPref(dt, "statusbar");
+ } else if (id == "FlipHorizontal") {
+ active = dt->is_flipped(SPDesktop::FLIP_HORIZONTAL);
+
+ } else if (id == "FlipVertical") {
+ active = dt->is_flipped(SPDesktop::FLIP_VERTICAL);
+
} else {
std::cerr << "checkitem_update: unhandled item: " << id << std::endl;
}