I/O Plugin GUI: set min height, fix context menu generic/edit

This commit is contained in:
Robin Gareus 2022-05-10 05:36:12 +02:00
parent 04c7cba961
commit b26f0b3e85
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 4 additions and 2 deletions

View File

@ -158,6 +158,7 @@ IOPluginWindow::PluginBox::PluginBox (bool is_pre)
_top.pack_start (_hbox, false, false);
_top.pack_end (_base, true, true);
add (_top);
set_size_request (-1, PX_SCALE (40));
show_all ();
}
@ -171,6 +172,7 @@ void
IOPluginWindow::PluginBox::add_child (Gtk::Widget& w)
{
_hbox.pack_start (w, false, false);
queue_resize ();
}
bool
@ -349,9 +351,9 @@ IOPluginWindow::IOPlugUI::button_press_event (GdkEventButton* ev)
Gtk::Menu* m = ARDOUR_UI_UTILS::shared_popup_menu ();
MenuList& items = m->items ();
items.push_back (MenuElem (_("Edit.."), sigc::bind (sigc::mem_fun (*this, &IOPluginWindow::IOPlugUI::edit_plugin), false)));
items.push_back (MenuElem (_("Edit.."), sigc::bind (sigc::mem_fun (*this, &IOPluginWindow::IOPlugUI::edit_plugin), true)));
items.back().set_sensitive (_iop->plugin ()->has_editor ());
items.push_back (MenuElem (_("Edit with generic controls..."), sigc::bind (sigc::mem_fun (*this, &IOPluginWindow::IOPlugUI::edit_plugin), true)));
items.push_back (MenuElem (_("Edit with generic controls..."), sigc::bind (sigc::mem_fun (*this, &IOPluginWindow::IOPlugUI::edit_plugin), false)));
items.push_back (SeparatorElem());
items.push_back (MenuElem (_("Delete"), sigc::mem_fun (*this, &IOPluginWindow::IOPlugUI::self_remove)));