diff options
Diffstat (limited to 'src/libs/gui/NodeModule.cpp')
-rw-r--r-- | src/libs/gui/NodeModule.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/libs/gui/NodeModule.cpp b/src/libs/gui/NodeModule.cpp index 189f1d2d..fb2fbdab 100644 --- a/src/libs/gui/NodeModule.cpp +++ b/src/libs/gui/NodeModule.cpp @@ -36,11 +36,14 @@ namespace GUI { NodeModule::NodeModule(boost::shared_ptr<PatchCanvas> canvas, SharedPtr<NodeModel> node) -: FlowCanvas::Module(canvas, node->path().name()), - _node(node), - _menu(node) + : FlowCanvas::Module(canvas, node->path().name()) + , _node(node) { assert(_node); + + Glib::RefPtr<Gnome::Glade::Xml> xml = GladeFactory::new_glade_reference(); + xml->get_widget_derived("object_menu", _menu); + _menu->init(node); node->signal_new_port.connect(sigc::bind(sigc::mem_fun(this, &NodeModule::add_port), true)); node->signal_removed_port.connect(sigc::mem_fun(this, &NodeModule::remove_port)); @@ -152,7 +155,7 @@ void NodeModule::on_click(GdkEventButton* event) { if (event->button == 3) - _menu.popup(event->button, event->time); + _menu->popup(event->button, event->time); } |