From 9f7241e83ba62f51852430398f4badfe68320e0f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 5 Apr 2007 03:21:14 +0000 Subject: Selection related fixes. git-svn-id: http://svn.drobilla.net/lad/patchage@395 a436a847-0d15-0410-975c-d299462d15a1 --- src/PatchageModule.h | 10 ++++++++-- 1 file 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(); -- cgit v1.2.1