summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-03-11 03:40:57 +0000
committerDavid Robillard <d@drobilla.net>2007-03-11 03:40:57 +0000
commit2834b233eedf0c66f65ac8169264d8359d8fc7c6 (patch)
treeb5e62d999423605ee49f03139efcbe558d41797c /src
parente23c8d2b64d18e500e7c171b64304a2c8962190e (diff)
downloadpatchage-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
Diffstat (limited to 'src')
-rw-r--r--src/PatchageModule.h4
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();