diff options
-rw-r--r-- | src/progs/ingenuity/NodeModule.cpp | 7 | ||||
-rw-r--r-- | src/progs/ingenuity/NodeModule.h | 5 |
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(); |