summaryrefslogtreecommitdiffstats
path: root/src/gui/NodeModule.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/NodeModule.cpp')
-rw-r--r--src/gui/NodeModule.cpp13
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