summaryrefslogtreecommitdiffstats
path: root/src/progs
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
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')
-rw-r--r--src/progs/ingenuity/NodeModule.cpp7
-rw-r--r--src/progs/ingenuity/NodeModule.h5
2 files changed, 7 insertions, 5 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);
}
diff --git a/src/progs/ingenuity/NodeModule.h b/src/progs/ingenuity/NodeModule.h
index b7a08d1c..f3ca4cbc 100644
--- a/src/progs/ingenuity/NodeModule.h
+++ b/src/progs/ingenuity/NodeModule.h
@@ -1,5 +1,4 @@
-/* This file is part of Ingen.
- * Copyright (C) 2007 Dave Robillard <http://drobilla.net>
+/* This file is part of In* Copyright (C) 2007 Dave Robillard <http://drobilla.net>
*
* Ingen is free software; you can redistribute it and/or modify it under the
* terms of the GNU General Public License as published by the Free Software
@@ -63,7 +62,7 @@ public:
virtual void store_location();
- void on_right_click(GdkEventButton* event);
+ void on_click(GdkEventButton* event);
void show_control_window();