blob: 5b006f6693bf2af02b7b276cda0db507efec47dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#include <config.h>
#include <gtk/gtk.h>
#include "cc-mouse-resources.h"
#include "cc-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);
gtk_widget_show (window);
widget = cc_mouse_test_new ();
gtk_widget_show (widget);
gtk_container_add (GTK_CONTAINER (window), widget);
g_signal_connect (G_OBJECT (window), "delete-event", G_CALLBACK (delete_event_cb), NULL);
gtk_main ();
return 0;
}
|