summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-03-31 16:57:14 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-03-31 16:57:14 +0200
commiteae6365a39a924b42546846b9edc16850167a0dd (patch)
tree3e6f71de4cdb452a7f6ce0fb42a108d4cf13f6be
parent67dc333b84b52bd18c7d2b786916acbda0adc5be (diff)
downloadcv-eae6365a39a924b42546846b9edc16850167a0dd.zip
cv-eae6365a39a924b42546846b9edc16850167a0dd.tar.gz
cv-eae6365a39a924b42546846b9edc16850167a0dd.tar.bz2
roi: Use GDK_KEY_<keyname> constants
-rw-r--r--roi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/roi.c b/roi.c
index 24db32b..9a3d078 100644
--- a/roi.c
+++ b/roi.c
@@ -175,12 +175,14 @@ key_event(GtkWidget *widget, GdkEventKey *event, gpointer userdata)
switch (event->type) {
case GDK_KEY_RELEASE:
switch (event->keyval) {
- case 'd':
+ case GDK_KEY_d:
+ case GDK_KEY_D:
g_object_unref(roi->modified_input);
roi->modified_input = NULL;
gtk_widget_queue_draw(roi->drawing_area);
break;
- case 'q':
+ case GDK_KEY_q:
+ case GDK_KEY_Q:
gtk_main_quit();
break;
}