Use the new paint_vfunc() instead of the deprecated on_paint().