diff options
author | David Robillard <d@drobilla.net> | 2008-02-22 19:54:29 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-02-22 19:54:29 +0000 |
commit | 60d6a432cd9a9754e4e3112aee023d0189ab93bc (patch) | |
tree | bb3068655f29b70382394eedda6a9bbbe95b6c62 /src/PatchageModule.hpp | |
parent | c253bafb7b5cfa510aaa6f7b5aa561bd42b007da (diff) | |
download | patchage-60d6a432cd9a9754e4e3112aee023d0189ab93bc.tar.gz patchage-60d6a432cd9a9754e4e3112aee023d0189ab93bc.tar.bz2 patchage-60d6a432cd9a9754e4e3112aee023d0189ab93bc.zip |
FlowCanvas performance improvements.
git-svn-id: http://svn.drobilla.net/lad/patchage@1154 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/PatchageModule.hpp')
-rw-r--r-- | src/PatchageModule.hpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/PatchageModule.hpp b/src/PatchageModule.hpp index 9004143..b06efc0 100644 --- a/src/PatchageModule.hpp +++ b/src/PatchageModule.hpp @@ -39,9 +39,15 @@ public: , _app(app) , _type(type) { + + } + + virtual ~PatchageModule() { delete _menu; _menu = NULL; } + + void create_menu() { _menu = new Gtk::Menu(); Gtk::Menu::MenuList& items = _menu->items(); - if (type == InputOutput) { + if (_type == InputOutput) { items.push_back(Gtk::Menu_Helpers::MenuElem("Split", sigc::mem_fun(this, &PatchageModule::split))); } else { @@ -51,8 +57,6 @@ public: items.push_back(Gtk::Menu_Helpers::MenuElem("Disconnect All", sigc::mem_fun(this, &PatchageModule::menu_disconnect_all))); } - - virtual ~PatchageModule() { delete _menu; } void move(double dx, double dy) { FlowCanvas::Module::move(dx, dy); |