UNIXworkcode

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