re-layout script-selector (only grow description vertically)
This commit is contained in:
parent
29ca1f7a67
commit
695554ab9b
|
@ -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 = manage (new Label (_("<b>Type:</b>"), Gtk::ALIGN_END, Gtk::ALIGN_CENTER, false));
|
||||||
l->set_use_markup ();
|
l->set_use_markup ();
|
||||||
t->attach (*l, 0, 1, ty, ty+1);
|
t->attach (*l, 0, 1, ty, ty+1, FILL|EXPAND, SHRINK);
|
||||||
t->attach (_type, 1, 2, ty, ty+1);
|
t->attach (_type, 1, 2, ty, ty+1, FILL|EXPAND, SHRINK);
|
||||||
++ty;
|
++ty;
|
||||||
|
|
||||||
l = manage (new Label (_("<b>Author:</b>"), Gtk::ALIGN_END, Gtk::ALIGN_CENTER, false));
|
l = manage (new Label (_("<b>Author:</b>"), Gtk::ALIGN_END, Gtk::ALIGN_CENTER, false));
|
||||||
l->set_use_markup ();
|
l->set_use_markup ();
|
||||||
t->attach (*l, 0, 1, ty, ty+1);
|
t->attach (*l, 0, 1, ty, ty+1, FILL|EXPAND, SHRINK);
|
||||||
t->attach (_author, 1, 2, ty, ty+1);
|
t->attach (_author, 1, 2, ty, ty+1, FILL|EXPAND, SHRINK);
|
||||||
++ty;
|
++ty;
|
||||||
|
|
||||||
l = manage (new Label (_("<b>Description:</b>"), Gtk::ALIGN_END, Gtk::ALIGN_CENTER, false));
|
Frame* f = manage(new Frame (_("Description")));
|
||||||
l->set_use_markup ();
|
f->add (_description);
|
||||||
t->attach (*l, 0, 1, ty, ty+1);
|
t->attach (*f, 0, 2, ty, ty+1);
|
||||||
t->attach (_description, 1, 2, ty, ty+1);
|
|
||||||
++ty;
|
++ty;
|
||||||
|
|
||||||
|
_description.set_padding (5, 5);
|
||||||
_description.set_line_wrap();
|
_description.set_line_wrap();
|
||||||
|
|
||||||
get_vbox()->set_spacing (6);
|
get_vbox()->set_spacing (6);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user