summaryrefslogtreecommitdiffstats
path: root/src/progs/ingenuity/NodeModule.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-03-11 03:35:21 +0000
committerDavid Robillard <d@drobilla.net>2007-03-11 03:35:21 +0000
commita6886bfef19d69a2ea70ff3ca3bdae95317cdf48 (patch)
treec9f1c203be0d919a2b2d45cea7a5e5f6278eb1b3 /src/progs/ingenuity/NodeModule.cpp
parent7d7d404f6d59891dbb53107345e140a85b97c9ed (diff)
downloadingen-a6886bfef19d69a2ea70ff3ca3bdae95317cdf48.tar.gz
ingen-a6886bfef19d69a2ea70ff3ca3bdae95317cdf48.tar.bz2
ingen-a6886bfef19d69a2ea70ff3ca3bdae95317cdf48.zip
Fixed node context menu.
git-svn-id: http://svn.drobilla.net/lad/ingen@349 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs/ingenuity/NodeModule.cpp')
-rw-r--r--src/progs/ingenuity/NodeModule.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/progs/ingenuity/NodeModule.cpp b/src/progs/ingenuity/NodeModule.cpp
index ea6b4a3e..971dfa6b 100644
--- a/src/progs/ingenuity/NodeModule.cpp
+++ b/src/progs/ingenuity/NodeModule.cpp
@@ -48,6 +48,8 @@ NodeModule::NodeModule(boost::shared_ptr<PatchCanvas> canvas, SharedPtr<NodeMode
node->new_port_sig.connect(sigc::bind(sigc::mem_fun(this, &NodeModule::add_port), true));
node->removed_port_sig.connect(sigc::mem_fun(this, &NodeModule::remove_port));
node->metadata_update_sig.connect(sigc::mem_fun(this, &NodeModule::metadata_update));
+
+ signal_clicked.connect(sigc::mem_fun(this, &NodeModule::on_click));
}
@@ -127,9 +129,10 @@ NodeModule::store_location()
void
-NodeModule::on_right_click(GdkEventButton* event)
+NodeModule::on_click(GdkEventButton* event)
{
- _menu.popup(event->button, event->time);
+ if (event->button == 3)
+ _menu.popup(event->button, event->time);
}