diff options
author | David Robillard <d@drobilla.net> | 2012-04-05 02:38:40 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-04-05 02:38:40 +0000 |
commit | abcc960e3a6a41973e8cd66fc528faf76745ffb8 (patch) | |
tree | 9d0f1674ad56b3de2f37ddb86119780f08a06da6 /src/gui/NodeModule.cpp | |
parent | aa399711b4d87d9fbe9b116559aff5271177d416 (diff) | |
download | ingen-abcc960e3a6a41973e8cd66fc528faf76745ffb8.tar.gz ingen-abcc960e3a6a41973e8cd66fc528faf76745ffb8.tar.bz2 ingen-abcc960e3a6a41973e8cd66fc528faf76745ffb8.zip |
Fix subpatch creation (fix #826).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4144 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/NodeModule.cpp')
-rw-r--r-- | src/gui/NodeModule.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp index eb278e51..9719ed67 100644 --- a/src/gui/NodeModule.cpp +++ b/src/gui/NodeModule.cpp @@ -354,15 +354,21 @@ NodeModule::show_control_window() } bool +NodeModule::on_double_click(GdkEventButton* event) +{ + if (!popup_gui()) { + show_control_window(); + } + return true; +} + +bool NodeModule::on_event(GdkEvent* ev) { if (ev->type == GDK_BUTTON_PRESS && ev->button.button == 3) { return show_menu(&ev->button); } else if (ev->type == GDK_2BUTTON_PRESS) { - if (!popup_gui()) { - show_control_window(); - } - return true; + return on_double_click(&ev->button); } return false; } |