summaryrefslogtreecommitdiffstats
path: root/src/gui/ControlPanel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/ControlPanel.cpp')
-rw-r--r--src/gui/ControlPanel.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/ControlPanel.cpp b/src/gui/ControlPanel.cpp
index a3964cf5..667157ce 100644
--- a/src/gui/ControlPanel.cpp
+++ b/src/gui/ControlPanel.cpp
@@ -87,18 +87,19 @@ ControlPanel::add_port(SharedPtr<const PortModel> pm)
// Add port
if (pm->is_input()) {
+ Glib::RefPtr<Gtk::Builder> xml = WidgetFactory::create("warehouse_win");
if (pm->is_toggle()) {
ToggleControl* tc;
- WidgetFactory::get_widget_derived("toggle_control", tc);
+ xml->get_widget_derived("toggle_control", tc);
control = tc;
} else if (pm->is_a(PortType::CONTROL)
- || pm->supports(App::instance().uris().atom_Float32)) {
+ || pm->supports(App::instance().uris().atom_Float32)) {
SliderControl* sc;
- WidgetFactory::get_widget_derived("control_strip", sc);
+ xml->get_widget_derived("control_strip", sc);
control = sc;
} else if (pm->supports(App::instance().uris().atom_String)) {
StringControl* sc;
- WidgetFactory::get_widget_derived("string_control", sc);
+ xml->get_widget_derived("string_control", sc);
control = sc;
}
}