summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/dock.cpp
diff options
context:
space:
mode:
authorNathan Lee <2431820-nathanal@users.noreply.gitlab.com>2019-03-13 00:21:09 +0000
committerPatrick Storz <eduard.braun2@gmx.de>2019-03-13 18:19:35 +0000
commit2dc8028b398a1d6dc5e90987f7c5b626a0421fb2 (patch)
treea86338e3a4b79931e6e71c9b4c68fb86aebc525a /src/ui/widget/dock.cpp
parentRevert Icon Preview behaviour (diff)
downloadinkscape-2dc8028b398a1d6dc5e90987f7c5b626a0421fb2.tar.gz
inkscape-2dc8028b398a1d6dc5e90987f7c5b626a0421fb2.zip
Place vertical iconified docks to the right of dock
Fixes https://gitlab.com/inkscape/inkscape/issues/129
Diffstat (limited to 'src/ui/widget/dock.cpp')
-rw-r--r--src/ui/widget/dock.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/widget/dock.cpp b/src/ui/widget/dock.cpp
index b2ff7c785..97202961e 100644
--- a/src/ui/widget/dock.cpp
+++ b/src/ui/widget/dock.cpp
@@ -79,7 +79,8 @@ Dock::Dock(Gtk::Orientation orientation)
_paned->pack2(_filler, true, false);
// resize, shrink
- _dock_box = Gtk::manage(new Gtk::Box(orientation));
+ _dock_box = Gtk::manage(new Gtk::Box(orientation == Gtk::ORIENTATION_HORIZONTAL ?
+ Gtk::ORIENTATION_VERTICAL : Gtk::ORIENTATION_HORIZONTAL));
_dock_box->set_name("DockBox");
_dock_box->pack_start(*_paned, Gtk::PACK_EXPAND_WIDGET);
_dock_box->pack_end(*Gtk::manage(Glib::wrap(GTK_WIDGET(_gdl_dock_bar))), Gtk::PACK_SHRINK);