UNIXworkcode

gboolean draw(GtkWidget *w, cairo_t *cr, void *data) { } GtkWidget *drawingarea = gtk_drawing_area_new(); g_signal_connect(G_OBJECT(drawingarea), "draw", G_CALLBACK(draw), NULL); gtk_container_add(GTK_CONTAINER(window), drawingarea);