diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-03-31 16:57:14 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-03-31 16:57:14 +0200 |
commit | eae6365a39a924b42546846b9edc16850167a0dd (patch) | |
tree | 3e6f71de4cdb452a7f6ce0fb42a108d4cf13f6be | |
parent | 67dc333b84b52bd18c7d2b786916acbda0adc5be (diff) | |
download | cv-eae6365a39a924b42546846b9edc16850167a0dd.tar.gz cv-eae6365a39a924b42546846b9edc16850167a0dd.tar.bz2 cv-eae6365a39a924b42546846b9edc16850167a0dd.zip |
roi: Use GDK_KEY_<keyname> constants
-rw-r--r-- | roi.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; } |