summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/scalar-unit.cpp
diff options
context:
space:
mode:
authorNathan Lee <2431820-nathanal@users.noreply.gitlab.com>2019-04-01 06:19:32 +0000
committerNathan Lee <2431820-nathanal@users.noreply.gitlab.com>2019-04-02 08:55:59 +0000
commit5929a0b1cdb9eeb176c7bbb84d3a8e30fdd38900 (patch)
tree080ba96c2c79d58a755f1f6b9eb9bce45bbb17b4 /src/ui/widget/scalar-unit.cpp
parentTidy UI for Object Properties/Attributes (diff)
downloadinkscape-5929a0b1cdb9eeb176c7bbb84d3a8e30fdd38900.tar.gz
inkscape-5929a0b1cdb9eeb176c7bbb84d3a8e30fdd38900.zip
Realign and reorder guides UI
Diffstat (limited to 'src/ui/widget/scalar-unit.cpp')
-rw-r--r--src/ui/widget/scalar-unit.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ui/widget/scalar-unit.cpp b/src/ui/widget/scalar-unit.cpp
index d9acd375b..2b6d001a9 100644
--- a/src/ui/widget/scalar-unit.cpp
+++ b/src/ui/widget/scalar-unit.cpp
@@ -35,7 +35,12 @@ ScalarUnit::ScalarUnit(Glib::ustring const &label, Glib::ustring const &tooltip,
_unit_menu = new UnitMenu();
g_assert(_unit_menu);
_unit_menu->setUnitType(unit_type);
- pack_start(*Gtk::manage(_unit_menu), false, false, 4);
+
+ remove(*_widget);
+ Gtk::Box *widget_holder = new Gtk::Box(Gtk::ORIENTATION_HORIZONTAL, 6);
+ widget_holder->pack_start(*_widget, Gtk::PACK_SHRINK);
+ widget_holder->pack_start(*Gtk::manage(_unit_menu), Gtk::PACK_SHRINK);
+ pack_start(*Gtk::manage(widget_holder), Gtk::PACK_SHRINK);
}
_unit_menu->signal_changed()
.connect_notify(sigc::mem_fun(*this, &ScalarUnit::on_unit_changed));