Display the inline display in the generic plugin gui

This commit is contained in:
Johannes Mueller 2017-07-21 00:36:40 +02:00 committed by Robin Gareus
parent 37b03e353a
commit a61ae46c82
2 changed files with 8 additions and 1 deletions

View File

@ -49,6 +49,7 @@
#include "widgets/tooltips.h"
#include "plugin_ui.h"
#include "plugin_display.h"
#include "gui_thread.h"
#include "automation_controller.h"
#include "gain_meter.h"
@ -527,6 +528,12 @@ GenericPluginUI::automatic_layout (const std::vector<ControlUI*>& control_uis)
} else {
delete output_table;
}
if (plugin->has_inline_display ()) {
PluginDisplay* pd = manage (new PluginDisplay (plugin, 300));
pd->set_name("inside gui");
hpacker.pack_end (*pd, true, true);
}
show_all();
}

View File

@ -65,7 +65,7 @@ PluginDisplay::on_button_release_event (GdkEventButton *ev)
void
PluginDisplay::on_size_request (Gtk::Requisition* req)
{
req->width = 56;
req->width = 300;
req->height = _cur_height;
}