diff options
author | David Robillard <d@drobilla.net> | 2007-04-05 03:21:14 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-04-05 03:21:14 +0000 |
commit | 9f7241e83ba62f51852430398f4badfe68320e0f (patch) | |
tree | eb5b2b547dbb40fe12269ad01bd80f0c15611418 /src | |
parent | 8bb02cb8c13430808fd4bb02e62942cace3fb65b (diff) | |
download | patchage-9f7241e83ba62f51852430398f4badfe68320e0f.tar.gz patchage-9f7241e83ba62f51852430398f4badfe68320e0f.tar.bz2 patchage-9f7241e83ba62f51852430398f4badfe68320e0f.zip |
Selection related fixes.
git-svn-id: http://svn.drobilla.net/lad/patchage@395 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/PatchageModule.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/PatchageModule.h b/src/PatchageModule.h index 3ce78c6..3ff030e 100644 --- a/src/PatchageModule.h +++ b/src/PatchageModule.h @@ -52,7 +52,7 @@ public: items.push_back(Gtk::Menu_Helpers::MenuElem("Disconnect All", sigc::mem_fun(this, &PatchageModule::menu_disconnect_all))); - signal_clicked.connect(sigc::mem_fun(this, &PatchageModule::on_click)); + //signal_clicked.connect(sigc::mem_fun(this, &PatchageModule::on_click)); } virtual ~PatchageModule() { } @@ -109,7 +109,13 @@ public: } virtual void show_dialog() {} - virtual void on_click(GdkEventButton* ev) { if (ev->button == 3) _menu.popup(ev->button, ev->time); } + + virtual void on_click(GdkEventButton* ev) { + if (ev->button == 3) + _menu.popup(ev->button, ev->time); + LibFlowCanvas::Item::on_click(ev); + } + virtual void menu_disconnect_all() { for (PortVector::iterator p = _ports.begin(); p != _ports.end(); ++p) (*p)->disconnect_all(); |