diff options
author | David Robillard <d@drobilla.net> | 2011-12-05 21:57:49 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-12-05 21:57:49 +0000 |
commit | 1a3615279866b201f842ea95addfa0cbb7731d6d (patch) | |
tree | f71f3ee16a5b85d898b8187052ff49a8ecafec1f /src/gui/NodeModule.cpp | |
parent | 0cef0a2e62b3d3c9f33822702fa7603c3448f064 (diff) | |
download | ingen-1a3615279866b201f842ea95addfa0cbb7731d6d.tar.gz ingen-1a3615279866b201f842ea95addfa0cbb7731d6d.tar.bz2 ingen-1a3615279866b201f842ea95addfa0cbb7731d6d.zip |
Move event handling down to C level.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3809 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/NodeModule.cpp')
-rw-r--r-- | src/gui/NodeModule.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp index 188925c5..8d7dd702 100644 --- a/src/gui/NodeModule.cpp +++ b/src/gui/NodeModule.cpp @@ -360,11 +360,16 @@ NodeModule::show_control_window() app().window_factory()->present_controls(_node); } -void -NodeModule::on_double_click(GdkEventButton* ev) +bool +NodeModule::on_event(GdkEvent* ev) { - if ( ! popup_gui() ) - show_control_window(); + if (ev->type == GDK_2BUTTON_PRESS) { + if (!popup_gui()) { + show_control_window(); + } + return true; + } + return false; } void |