summaryrefslogtreecommitdiffstats
path: root/src/desktop.cpp
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2018-11-11 23:54:54 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2018-12-01 16:17:15 +0000
commit7fcdbf91b9d06dffea0591699c8474408b3d02ab (patch)
tree992df2f68baf55a0f9ee99c58a1cb4e5c176a0e6 /src/desktop.cpp
parentAdding line to move outline (diff)
downloadinkscape-7fcdbf91b9d06dffea0591699c8474408b3d02ab.tar.gz
inkscape-7fcdbf91b9d06dffea0591699c8474408b3d02ab.zip
Improve spliter and add outline mode functionality
Diffstat (limited to '')
-rw-r--r--src/desktop.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/desktop.cpp b/src/desktop.cpp
index 7cb90ebb2..ad9c2efbd 100644
--- a/src/desktop.cpp
+++ b/src/desktop.cpp
@@ -1607,6 +1607,10 @@ void SPDesktop::toggleSplitMode()
Gtk::Window *parent = getToplevel();
if (parent) {
_split_canvas = !_split_canvas;
+ Inkscape::Preferences *prefs = Inkscape::Preferences::get();
+ prefs->setBool("/window/splitcanvas/vertical", true);
+ prefs->setBool("/window/splitcanvas/inverse", false);
+ prefs->setDouble("/window/splitcanvas/value", 0.5);
SPDesktopWidget *dtw = static_cast<SPDesktopWidget *>(parent->get_data("desktopwidget"));
dtw->splitCanvas(_split_canvas);
GtkAllocation allocation;