13
0

Show generic plugin UI toolbar (for presets etc.) on LV2 UIs (except external).

git-svn-id: svn://localhost/ardour2/branches/3.0@11019 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2011-12-18 02:25:19 +00:00
parent f97091105d
commit fb5f590b11

View File

@ -204,6 +204,18 @@ LV2PluginUI::lv2ui_instantiate(const std::string& title)
_external_ui_ptr = NULL; _external_ui_ptr = NULL;
if (_inst) { if (_inst) {
if (!is_external_ui) { if (!is_external_ui) {
Gtk::HBox* box = manage (new Gtk::HBox);
box->set_spacing (6);
box->set_border_width (6);
box->pack_end (focus_button, false, false);
box->pack_end (bypass_button, false, false, 10);
box->pack_end (delete_button, false, false);
box->pack_end (save_button, false, false);
box->pack_end (add_button, false, false);
box->pack_end (_preset_combo, false, false);
box->show_all();
pack_start(*box, false, false);
GtkWidget* c_widget = (GtkWidget*)GET_WIDGET(_inst); GtkWidget* c_widget = (GtkWidget*)GET_WIDGET(_inst);
_gui_widget = Glib::wrap(c_widget); _gui_widget = Glib::wrap(c_widget);
_gui_widget->show_all(); _gui_widget->show_all();