summaryrefslogtreecommitdiff
path: root/gtk2_ardour/option_editor.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2019-06-06 18:30:12 -0600
committerPaul Davis <paul@linuxaudiosystems.com>2019-06-06 18:32:13 -0600
commit2a38833fca063b45915f7068581a447b4a96ef7f (patch)
treeb4ffe41f4a70c84072aea76177558139eabfbb3b /gtk2_ardour/option_editor.cc
parentc2200e74abe9ee19c53faf0052e5b519a2c4d470 (diff)
RcActionButton is now always its natural width
Diffstat (limited to 'gtk2_ardour/option_editor.cc')
-rw-r--r--gtk2_ardour/option_editor.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/gtk2_ardour/option_editor.cc b/gtk2_ardour/option_editor.cc
index 63fe44e484..9cf4920121 100644
--- a/gtk2_ardour/option_editor.cc
+++ b/gtk2_ardour/option_editor.cc
@@ -190,13 +190,16 @@ void
RcActionButton::add_to_page (OptionEditorPage *p)
{
int const n = p->table.property_n_rows();
- int m = n + 1;
+ const int m = n + 1;
p->table.resize (m, 3);
+ Alignment* a = manage (new Alignment (0, 0.5, 0, 1.0));
+ a->add (*_button);
+
if (_label) {
- p->table.attach (*_label, 1, 2, n, n + 1, FILL | EXPAND);
- p->table.attach (*_button, 2, 3, n, n + 1, FILL | EXPAND);
+ p->table.attach (*_label, 1, 2, n, m);
+ p->table.attach (*a, 2, 3, n, m, FILL|EXPAND);
} else {
- p->table.attach (*_button, 1, 3, n, n + 1, FILL | EXPAND);
+ p->table.attach (*a, 1, 3, n, m, FILL|EXPAND);
}
}