mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
Change export dialog widget size allocation and make closing the exander make the window smaller also
(another attempt at fixing #4559 git-svn-id: svn://localhost/ardour2/branches/3.0@11447 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
5e92f14dc5
commit
a5b39d56df
2 changed files with 20 additions and 1 deletions
|
|
@ -145,6 +145,12 @@ ExportDialog::init ()
|
||||||
progress_widget.hide_all();
|
progress_widget.hide_all();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
ExportDialog::expanded_changed ()
|
||||||
|
{
|
||||||
|
set_resizable(advanced->get_expanded());
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
ExportDialog::init_gui ()
|
ExportDialog::init_gui ()
|
||||||
{
|
{
|
||||||
|
|
@ -183,9 +189,17 @@ ExportDialog::init_gui ()
|
||||||
get_vbox()->pack_start (warning_widget, false, false, 0);
|
get_vbox()->pack_start (warning_widget, false, false, 0);
|
||||||
get_vbox()->pack_start (progress_widget, false, false, 0);
|
get_vbox()->pack_start (progress_widget, false, false, 0);
|
||||||
|
|
||||||
Gtk::Expander* advanced = Gtk::manage (new Gtk::Expander (_("Advanced options")));
|
advanced = Gtk::manage (new Gtk::Expander (_("Advanced options")));
|
||||||
|
advanced->property_expanded().signal_changed().connect(
|
||||||
|
sigc::mem_fun(*this, &ExportDialog::expanded_changed));
|
||||||
advanced->add (*advanced_paned);
|
advanced->add (*advanced_paned);
|
||||||
|
|
||||||
|
if (channel_selector_is_expandable()) {
|
||||||
|
advanced_sizegroup = Gtk::SizeGroup::create(Gtk::SIZE_GROUP_VERTICAL);
|
||||||
|
advanced_sizegroup->add_widget(*timespan_selector);
|
||||||
|
advanced_sizegroup->add_widget(*channel_selector);
|
||||||
|
}
|
||||||
|
|
||||||
get_vbox()->pack_start (*advanced, true, true);
|
get_vbox()->pack_start (*advanced, true, true);
|
||||||
|
|
||||||
Pango::AttrList bold;
|
Pango::AttrList bold;
|
||||||
|
|
|
||||||
|
|
@ -93,6 +93,8 @@ class ExportDialog : public ArdourDialog {
|
||||||
|
|
||||||
void init ();
|
void init ();
|
||||||
|
|
||||||
|
void expanded_changed();
|
||||||
|
|
||||||
void notify_errors ();
|
void notify_errors ();
|
||||||
void close_dialog ();
|
void close_dialog ();
|
||||||
|
|
||||||
|
|
@ -114,6 +116,9 @@ class ExportDialog : public ArdourDialog {
|
||||||
|
|
||||||
/*** GUI components ***/
|
/*** GUI components ***/
|
||||||
|
|
||||||
|
Glib::RefPtr<Gtk::SizeGroup> advanced_sizegroup;
|
||||||
|
Gtk::Expander * advanced;
|
||||||
|
|
||||||
/* Warning area */
|
/* Warning area */
|
||||||
|
|
||||||
Gtk::HBox warn_hbox;
|
Gtk::HBox warn_hbox;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue