copy of the example for GtkDrawingArea from the standard ref