clickanddraw and drawnumber, ported from the Gtk+ version