mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
Expand just entry fields when the dialog is expanded
(#4762). Fix alignment of labels. git-svn-id: svn://localhost/ardour2/branches/3.0@11634 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
0d820089de
commit
79f2b91921
1 changed files with 4 additions and 1 deletions
|
|
@ -82,6 +82,7 @@ Gtk::Widget &
|
||||||
TextMetadataField::name_widget ()
|
TextMetadataField::name_widget ()
|
||||||
{
|
{
|
||||||
label = Gtk::manage (new Gtk::Label(_name + ':', Gtk::ALIGN_LEFT));
|
label = Gtk::manage (new Gtk::Label(_name + ':', Gtk::ALIGN_LEFT));
|
||||||
|
label->set_alignment (0, 0.5);
|
||||||
return *label;
|
return *label;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -160,6 +161,7 @@ Gtk::Widget &
|
||||||
NumberMetadataField::name_widget ()
|
NumberMetadataField::name_widget ()
|
||||||
{
|
{
|
||||||
label = Gtk::manage (new Gtk::Label(_name + ':', Gtk::ALIGN_LEFT));
|
label = Gtk::manage (new Gtk::Label(_name + ':', Gtk::ALIGN_LEFT));
|
||||||
|
label->set_alignment (0, 0.5);
|
||||||
return *label;
|
return *label;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -231,6 +233,7 @@ SessionMetadataSetEditable::SessionMetadataSetEditable (string const & name)
|
||||||
{
|
{
|
||||||
table.set_row_spacings (6);
|
table.set_row_spacings (6);
|
||||||
table.set_col_spacings (12);
|
table.set_col_spacings (12);
|
||||||
|
table.set_homogeneous (false);
|
||||||
vbox.pack_start (table, false, false);
|
vbox.pack_start (table, false, false);
|
||||||
vbox.set_spacing (6);
|
vbox.set_spacing (6);
|
||||||
vbox.set_border_width (6);
|
vbox.set_border_width (6);
|
||||||
|
|
@ -260,7 +263,7 @@ SessionMetadataSetEditable::set_session (ARDOUR::Session * s)
|
||||||
for (DataList::const_iterator it = list.begin(); it != list.end(); ++it) {
|
for (DataList::const_iterator it = list.begin(); it != list.end(); ++it) {
|
||||||
field = *it;
|
field = *it;
|
||||||
field->load_data (data);
|
field->load_data (data);
|
||||||
table.attach (field->name_widget(), 0, 1, row, row + 1);
|
table.attach (field->name_widget(), 0, 1, row, row + 1, Gtk::FILL);
|
||||||
table.attach (field->edit_widget(), 1, 2, row, row + 1);
|
table.attach (field->edit_widget(), 1, 2, row, row + 1);
|
||||||
++row;
|
++row;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue