#include #include #include "cc-mouse-resources.h" #include "gnome-mouse-test.h" static gboolean delete_event_cb (GtkWidget *widget, GdkEvent *event, gpointer user_data) { gtk_main_quit (); return FALSE; } int main (int argc, char **argv) { GtkWidget *widget; GtkWidget *window; gtk_init (&argc, &argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); widget = cc_mouse_test_new (); gtk_container_add (GTK_CONTAINER (window), widget); gtk_widget_show_all (window); g_signal_connect (G_OBJECT (window), "delete-event", G_CALLBACK (delete_event_cb), NULL); gtk_main (); return 0; }