diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-03-31 16:41:52 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-03-31 16:42:46 +0200 |
commit | 60f6bbf794a15c77a65148571e8f23cce906ce3b (patch) | |
tree | 4d8a3165a518ea337f85e31389f10d976e20caac | |
parent | 23462e769c604d3deebb85190f929bf2f7f719e2 (diff) | |
download | cv-60f6bbf794a15c77a65148571e8f23cce906ce3b.tar.gz cv-60f6bbf794a15c77a65148571e8f23cce906ce3b.tar.bz2 cv-60f6bbf794a15c77a65148571e8f23cce906ce3b.zip |
roi: Remove some unneeded G_OBJECT casts
-rw-r--r-- | roi.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -253,7 +253,7 @@ main(int argc, char *argv[]) g_signal_connect(roi.window, "destroy", G_CALLBACK(gtk_main_quit), NULL); - g_signal_connect(G_OBJECT(roi.drawing_area), "draw", + g_signal_connect(roi.drawing_area, "draw", G_CALLBACK(draw_cb), &roi); gtk_widget_set_events(roi.drawing_area, @@ -261,17 +261,17 @@ main(int argc, char *argv[]) GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE_MASK | GDK_BUTTON1_MOTION_MASK); - g_signal_connect(G_OBJECT(roi.window), "key-press-event", + g_signal_connect(roi.window, "key-press-event", G_CALLBACK(key_event), &roi); - g_signal_connect(G_OBJECT(roi.window), "key-release-event", + g_signal_connect(roi.window, "key-release-event", G_CALLBACK(key_event), &roi); - g_signal_connect(G_OBJECT(roi.drawing_area), "button-press-event", + g_signal_connect(roi.drawing_area, "button-press-event", G_CALLBACK(button_press_event), &roi); - g_signal_connect(G_OBJECT(roi.drawing_area), "button-release-event", + g_signal_connect(roi.drawing_area, "button-release-event", G_CALLBACK(button_release_event), &roi); - g_signal_connect (G_OBJECT (roi.drawing_area), "motion-notify-event", - G_CALLBACK(motion_notify_event), &roi); + g_signal_connect(roi.drawing_area, "motion-notify-event", + G_CALLBACK(motion_notify_event), &roi); gtk_widget_show_all(roi.window); gtk_main(); |