diff options
author | Robin Gareus <robin@gareus.org> | 2017-02-18 19:01:00 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-02-18 19:01:00 +0100 |
commit | 695554ab9bee9862878d64f81f4df8cc2bfeb403 (patch) | |
tree | 04211420e97bbbd7cf2e1af64ab99b41d57b3e8f /gtk2_ardour | |
parent | 29ca1f7a6714f19c34e6e0cd2a7f00a073c4d322 (diff) |
re-layout script-selector (only grow description vertically)
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/script_selector.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gtk2_ardour/script_selector.cc b/gtk2_ardour/script_selector.cc index 4a26973e64..a80a0af1cc 100644 --- a/gtk2_ardour/script_selector.cc +++ b/gtk2_ardour/script_selector.cc @@ -42,22 +42,22 @@ ScriptSelector::ScriptSelector (std::string title, LuaScriptInfo::ScriptType typ l = manage (new Label (_("<b>Type:</b>"), Gtk::ALIGN_END, Gtk::ALIGN_CENTER, false)); l->set_use_markup (); - t->attach (*l, 0, 1, ty, ty+1); - t->attach (_type, 1, 2, ty, ty+1); + t->attach (*l, 0, 1, ty, ty+1, FILL|EXPAND, SHRINK); + t->attach (_type, 1, 2, ty, ty+1, FILL|EXPAND, SHRINK); ++ty; l = manage (new Label (_("<b>Author:</b>"), Gtk::ALIGN_END, Gtk::ALIGN_CENTER, false)); l->set_use_markup (); - t->attach (*l, 0, 1, ty, ty+1); - t->attach (_author, 1, 2, ty, ty+1); + t->attach (*l, 0, 1, ty, ty+1, FILL|EXPAND, SHRINK); + t->attach (_author, 1, 2, ty, ty+1, FILL|EXPAND, SHRINK); ++ty; - l = manage (new Label (_("<b>Description:</b>"), Gtk::ALIGN_END, Gtk::ALIGN_CENTER, false)); - l->set_use_markup (); - t->attach (*l, 0, 1, ty, ty+1); - t->attach (_description, 1, 2, ty, ty+1); + Frame* f = manage(new Frame (_("Description"))); + f->add (_description); + t->attach (*f, 0, 2, ty, ty+1); ++ty; + _description.set_padding (5, 5); _description.set_line_wrap(); get_vbox()->set_spacing (6); |