summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-03-31 16:51:47 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-03-31 16:51:47 +0200
commit67dc333b84b52bd18c7d2b786916acbda0adc5be (patch)
tree56cf1b807f738dbc4f505c364ebae785e0a06bf7
parent62d1d3208ea961d19973fb84e43ceba1dcadc269 (diff)
downloadcv-67dc333b84b52bd18c7d2b786916acbda0adc5be.zip
cv-67dc333b84b52bd18c7d2b786916acbda0adc5be.tar.gz
cv-67dc333b84b52bd18c7d2b786916acbda0adc5be.tar.bz2
roi: Further key mask cleanup
-rw-r--r--roi.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/roi.c b/roi.c
index 100fbff..24db32b 100644
--- a/roi.c
+++ b/roi.c
@@ -247,16 +247,13 @@ main(int argc, char *argv[])
g_signal_connect(roi.window, "destroy",
G_CALLBACK(gtk_main_quit), NULL);
- g_signal_connect(roi.drawing_area, "draw",
- G_CALLBACK(draw_cb), &roi);
-
- gtk_widget_set_events(roi.drawing_area,
- GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK |
- GDK_KEY_RELEASE_MASK | GDK_BUTTON1_MOTION_MASK);
-
g_signal_connect(roi.window, "key-release-event",
G_CALLBACK(key_event), &roi);
+ gtk_widget_set_events(roi.drawing_area, GDK_BUTTON1_MOTION_MASK |
+ GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK);
+
+ g_signal_connect(roi.drawing_area, "draw", G_CALLBACK(draw_cb), &roi);
g_signal_connect(roi.drawing_area, "button-press-event",
G_CALLBACK(button_press_event), &roi);
g_signal_connect(roi.drawing_area, "button-release-event",