mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 04:09:29 +01:00
Set size-request for generic preset plugin UIs
This commit is contained in:
parent
345337da35
commit
263faa09ae
1 changed files with 11 additions and 0 deletions
|
|
@ -401,6 +401,11 @@ GenericPluginUI::build ()
|
|||
if (has_descriptive_presets ()) {
|
||||
preset_gui = new PluginPresetsUI (_pi); // XXX
|
||||
hpacker.pack_start (*preset_gui, true, true);
|
||||
if (is_scrollable) {
|
||||
preset_gui->show_all ();
|
||||
GtkRequisition request = preset_gui->size_request();
|
||||
prefheight = std::max (prefheight, request.height);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
automatic_layout (control_uis);
|
||||
|
|
@ -665,6 +670,12 @@ GenericPluginUI::build_midi_table ()
|
|||
pgm_table->attach (*cui, col + 1, col + 2, row, row+1, SHRINK, SHRINK);
|
||||
}
|
||||
|
||||
if (is_scrollable) {
|
||||
frame->show_all ();
|
||||
GtkRequisition request = frame->size_request();
|
||||
prefheight = std::max (prefheight, request.height);
|
||||
}
|
||||
|
||||
_pib->plugin ()->read_midnam();
|
||||
|
||||
midi_refill_patches ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue