diff options
Diffstat (limited to 'roi.c')
-rw-r--r-- | roi.c | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -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", |