summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-03-31 16:42:55 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-03-31 16:49:46 +0200
commit1c2b1f500ca2b2a0532feb5d51ec3169039330e8 (patch)
treea07316f4d1bca0fff078f85a8e8116fcb213dbda
parent60f6bbf794a15c77a65148571e8f23cce906ce3b (diff)
downloadcv-1c2b1f500ca2b2a0532feb5d51ec3169039330e8.zip
cv-1c2b1f500ca2b2a0532feb5d51ec3169039330e8.tar.gz
cv-1c2b1f500ca2b2a0532feb5d51ec3169039330e8.tar.bz2
roi: No need for GDK_KEY_PRESS_MASK currently
-rw-r--r--roi.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/roi.c b/roi.c
index 12a6b5b..bd51563 100644
--- a/roi.c
+++ b/roi.c
@@ -258,11 +258,8 @@ main(int argc, char *argv[])
gtk_widget_set_events(roi.drawing_area,
GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK |
- GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE_MASK |
- GDK_BUTTON1_MOTION_MASK);
+ GDK_KEY_RELEASE_MASK | GDK_BUTTON1_MOTION_MASK);
- g_signal_connect(roi.window, "key-press-event",
- G_CALLBACK(key_event), &roi);
g_signal_connect(roi.window, "key-release-event",
G_CALLBACK(key_event), &roi);