From 79f2b919211aaf60b0e31bafd162fee7c45f40b8 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 9 Mar 2012 21:38:36 +0000 Subject: [PATCH] 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 --- gtk2_ardour/session_metadata_dialog.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/session_metadata_dialog.cc b/gtk2_ardour/session_metadata_dialog.cc index 9689ca2e09..996262f0fa 100644 --- a/gtk2_ardour/session_metadata_dialog.cc +++ b/gtk2_ardour/session_metadata_dialog.cc @@ -82,6 +82,7 @@ Gtk::Widget & TextMetadataField::name_widget () { label = Gtk::manage (new Gtk::Label(_name + ':', Gtk::ALIGN_LEFT)); + label->set_alignment (0, 0.5); return *label; } @@ -160,6 +161,7 @@ Gtk::Widget & NumberMetadataField::name_widget () { label = Gtk::manage (new Gtk::Label(_name + ':', Gtk::ALIGN_LEFT)); + label->set_alignment (0, 0.5); return *label; } @@ -231,6 +233,7 @@ SessionMetadataSetEditable::SessionMetadataSetEditable (string const & name) { table.set_row_spacings (6); table.set_col_spacings (12); + table.set_homogeneous (false); vbox.pack_start (table, false, false); vbox.set_spacing (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) { field = *it; 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); ++row; }