From 156ef0f6027c449386339c7dbc68cda23785b69e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 25 May 2011 02:29:24 +0000 Subject: Fix crash on popping up node menu. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3323 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/NodeMenu.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/gui/NodeMenu.cpp b/src/gui/NodeMenu.cpp index c55050cc..fb8556e0 100644 --- a/src/gui/NodeMenu.cpp +++ b/src/gui/NodeMenu.cpp @@ -23,6 +23,7 @@ #include "App.hpp" #include "NodeMenu.hpp" #include "WindowFactory.hpp" +#include "WidgetFactory.hpp" using namespace std; using namespace Ingen::Client; @@ -36,12 +37,13 @@ NodeMenu::NodeMenu(BaseObjectType* cobject, , _controls_menuitem(NULL) , _presets_menu(NULL) { + Glib::RefPtr nxml = WidgetFactory::create("node_menu"); Gtk::Menu* node_menu = NULL; - xml->get_widget("node_menu", node_menu); - xml->get_widget("node_controls_menuitem", _controls_menuitem); - xml->get_widget("node_popup_gui_menuitem", _popup_gui_menuitem); - xml->get_widget("node_embed_gui_menuitem", _embed_gui_menuitem); - xml->get_widget("node_randomize_menuitem", _randomize_menuitem); + nxml->get_widget("node_menu", node_menu); + nxml->get_widget("node_controls_menuitem", _controls_menuitem); + nxml->get_widget("node_popup_gui_menuitem", _popup_gui_menuitem); + nxml->get_widget("node_embed_gui_menuitem", _embed_gui_menuitem); + nxml->get_widget("node_randomize_menuitem", _randomize_menuitem); items().push_front(Gtk::Menu_Helpers::SeparatorElem()); -- cgit v1.2.1