diff options
author | David Robillard <d@drobilla.net> | 2007-03-11 03:40:57 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-03-11 03:40:57 +0000 |
commit | 2834b233eedf0c66f65ac8169264d8359d8fc7c6 (patch) | |
tree | b5e62d999423605ee49f03139efcbe558d41797c | |
parent | e23c8d2b64d18e500e7c171b64304a2c8962190e (diff) | |
download | patchage-2834b233eedf0c66f65ac8169264d8359d8fc7c6.tar.gz patchage-2834b233eedf0c66f65ac8169264d8359d8fc7c6.tar.bz2 patchage-2834b233eedf0c66f65ac8169264d8359d8fc7c6.zip |
Fixed module context menu.
git-svn-id: http://svn.drobilla.net/lad/patchage@350 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | src/PatchageModule.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/PatchageModule.h b/src/PatchageModule.h index 7c27d4e..3ce78c6 100644 --- a/src/PatchageModule.h +++ b/src/PatchageModule.h @@ -51,6 +51,8 @@ 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)); } virtual ~PatchageModule() { } @@ -107,7 +109,7 @@ public: } virtual void show_dialog() {} - virtual void on_right_click(GdkEventButton* ev) { _menu.popup(ev->button, ev->time); } + virtual void on_click(GdkEventButton* ev) { if (ev->button == 3) _menu.popup(ev->button, ev->time); } virtual void menu_disconnect_all() { for (PortVector::iterator p = _ports.begin(); p != _ports.end(); ++p) (*p)->disconnect_all(); |