diff options
| author | Patrick Storz <eduard.braun2@gmx.de> | 2019-08-10 19:25:41 +0000 |
|---|---|---|
| committer | Patrick Storz <eduard.braun2@gmx.de> | 2019-08-31 14:50:39 +0000 |
| commit | a4eea75612acbbfd6b8aed6b48090ca2c76ee657 (patch) | |
| tree | e53efaa60e611bc73c20b628c1c6e725c6f89f75 /src/extension/prefdialog/widget-box.cpp | |
| parent | Add new widget "separator" which draws a line between widgets (diff) | |
| download | inkscape-a4eea75612acbbfd6b8aed6b48090ca2c76ee657.tar.gz inkscape-a4eea75612acbbfd6b8aed6b48090ca2c76ee657.zip | |
Add new widget "spacer" which adds an empty space between widgets
The attribute "size" allows to define the spacing in px.
The special value "expand" can be used to make the spacer consume
all available space in the parent.
Diffstat (limited to 'src/extension/prefdialog/widget-box.cpp')
| -rw-r--r-- | src/extension/prefdialog/widget-box.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/extension/prefdialog/widget-box.cpp b/src/extension/prefdialog/widget-box.cpp index d7b93e3ff..2c9d24f4a 100644 --- a/src/extension/prefdialog/widget-box.cpp +++ b/src/extension/prefdialog/widget-box.cpp @@ -84,6 +84,12 @@ Gtk::Widget *WidgetBox::get_widget(sigc::signal<void> *changeSignal) // revisit this later, possibly implementing GtkFrame or similar box->set_spacing(GUI_BOX_SPACING); + if (_orientation == HORIZONTAL) { + box->set_vexpand(false); + } else { + box->set_hexpand(false); + } + // add child widgets onto page (if any) for (auto child : _children) { Gtk::Widget *child_widget = child->get_widget(changeSignal); |
