diff options
author | David Robillard <d@drobilla.net> | 2011-05-25 02:29:24 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-05-25 02:29:24 +0000 |
commit | 156ef0f6027c449386339c7dbc68cda23785b69e (patch) | |
tree | 7b3e9e2571fc39e2d5abe4ddd9d50da4b34c5783 /src | |
parent | d6bd53fe5ca146398e9c3547b6cd9a06cf56d90f (diff) | |
download | ingen-156ef0f6027c449386339c7dbc68cda23785b69e.tar.gz ingen-156ef0f6027c449386339c7dbc68cda23785b69e.tar.bz2 ingen-156ef0f6027c449386339c7dbc68cda23785b69e.zip |
Fix crash on popping up node menu.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3323 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/NodeMenu.cpp | 12 |
1 files 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<Gtk::Builder> 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()); |