1 gboolean draw(GtkWidget *w,
cairo_t *cr,
void *data) {
2
3 }
4
5 GtkWidget *drawingarea = gtk_drawing_area_new();
6 g_signal_connect(
G_OBJECT(drawingarea),
"draw",
G_CALLBACK(draw),
NULL);
7 gtk_container_add(
GTK_CONTAINER(window), drawingarea);
8
9