diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2019-06-06 18:29:48 -0600 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2019-06-06 18:32:13 -0600 |
commit | c2200e74abe9ee19c53faf0052e5b519a2c4d470 (patch) | |
tree | d4ce49e2fd08c70baaff9cb1b45a0d8c1f3c195a /gtk2_ardour/option_editor.cc | |
parent | 8bb6a5c8751bbf47adcc9414f2d8f3aa977adcaa (diff) |
change OptionEditComponent to avoid ever expanding the RHS widget horizontally
Diffstat (limited to 'gtk2_ardour/option_editor.cc')
-rw-r--r-- | gtk2_ardour/option_editor.cc | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/gtk2_ardour/option_editor.cc b/gtk2_ardour/option_editor.cc index a61cd46064..63fe44e484 100644 --- a/gtk2_ardour/option_editor.cc +++ b/gtk2_ardour/option_editor.cc @@ -59,7 +59,7 @@ OptionEditorComponent::add_widget_to_page (OptionEditorPage* p, Gtk::Widget* w) } void -OptionEditorComponent::add_widgets_to_page (OptionEditorPage* p, Gtk::Widget* wa, Gtk::Widget* wb, bool expand) +OptionEditorComponent::add_widgets_to_page (OptionEditorPage* p, Gtk::Widget* wa, Gtk::Widget* wb, bool /*notused*/) { int const n = p->table.property_n_rows(); int m = n + 1; @@ -69,13 +69,11 @@ OptionEditorComponent::add_widgets_to_page (OptionEditorPage* p, Gtk::Widget* wa p->table.resize (m, 3); p->table.attach (*wa, 1, 2, n, n + 1, FILL); - if (expand) { - p->table.attach (*wb, 2, 3, n, n + 1, FILL | EXPAND); - } else { - Alignment* a = manage (new Alignment (0, 0.5, 0, 1.0)); - a->add (*wb); - p->table.attach (*a, 2, 3, n, n + 1, FILL | EXPAND); - } + + Alignment* a = manage (new Alignment (0, 0.5, 0, 1.0)); + a->add (*wb); + p->table.attach (*a, 2, 3, n, n + 1, FILL | EXPAND); + maybe_add_note (p, n + 1); } |