mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 00:04:56 +01:00
I/O Plugin GUI: set min height, fix context menu generic/edit
This commit is contained in:
parent
04c7cba961
commit
b26f0b3e85
1 changed files with 4 additions and 2 deletions
|
|
@ -158,6 +158,7 @@ IOPluginWindow::PluginBox::PluginBox (bool is_pre)
|
||||||
_top.pack_start (_hbox, false, false);
|
_top.pack_start (_hbox, false, false);
|
||||||
_top.pack_end (_base, true, true);
|
_top.pack_end (_base, true, true);
|
||||||
add (_top);
|
add (_top);
|
||||||
|
set_size_request (-1, PX_SCALE (40));
|
||||||
show_all ();
|
show_all ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -171,6 +172,7 @@ void
|
||||||
IOPluginWindow::PluginBox::add_child (Gtk::Widget& w)
|
IOPluginWindow::PluginBox::add_child (Gtk::Widget& w)
|
||||||
{
|
{
|
||||||
_hbox.pack_start (w, false, false);
|
_hbox.pack_start (w, false, false);
|
||||||
|
queue_resize ();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
|
@ -349,9 +351,9 @@ IOPluginWindow::IOPlugUI::button_press_event (GdkEventButton* ev)
|
||||||
Gtk::Menu* m = ARDOUR_UI_UTILS::shared_popup_menu ();
|
Gtk::Menu* m = ARDOUR_UI_UTILS::shared_popup_menu ();
|
||||||
MenuList& items = m->items ();
|
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.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 (SeparatorElem());
|
||||||
items.push_back (MenuElem (_("Delete"), sigc::mem_fun (*this, &IOPluginWindow::IOPlugUI::self_remove)));
|
items.push_back (MenuElem (_("Delete"), sigc::mem_fun (*this, &IOPluginWindow::IOPlugUI::self_remove)));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue