- // This methods sends wxPaintEvents to the window. It reads the
- // update region, breaks it up into rects and sends an event
- // for each rect. It is also responsible for background erase
- // events and NC paint events. It is called from "draw" and
- // "expose" handlers as well as from ::Update()
- void GtkSendPaintEvents();
+ // This method sends wxPaintEvents to the window.
+ // It is also responsible for background erase events.
+#ifdef __WXGTK3__
+ void GTKSendPaintEvents(cairo_t* cr);
+#else
+ void GTKSendPaintEvents(const GdkRegion* region);
+#endif