Re: Heads-up: Potentially breaking changes to the GDK drawing model pushed
- From: Colomban Wendling <lists ban herbesfolles org>
- To: gtk-devel-list gnome org
- Subject: Re: Heads-up: Potentially breaking changes to the GDK drawing model pushed
- Date: Sat, 21 Jun 2014 15:53:21 +0200
Le 21/06/2014 03:00, Jasper St. Pierre a écrit :
To better support Wayland with fewer copies and less drawing artifacts,
I've pushed some potentially breaking changes to GDK, namely around
gdk_cairo_create and gdk_window_begin_paint_region.
https://git.gnome.org/browse/gtk+/commit/?id=d48adf9cee7e340acd7f8b9a5f9716695352b848
https://git.gnome.org/browse/gtk+/commit/?id=be30e440c350f0f3e0f2572f7f3eab54ef96af0e
With these changes, it is now illegal to call gdk_cairo_create outside
of a begin_paint / end_paint. [...]
Please double-check to make sure your apps still work fine. If you have
a problem with any of this or I broke your apps by accident, please
reply and I'll try to fix it.
For the record, this makes Scintilla (http://www.scintilla.org/) emit
tons of warnings. However, it seems relatively easy to fix and don't
seem to actually break it, the triggering call being only due to the
same code path being used in drawing and non-drawing contexts. So,
fixing this would add complexity to the application code, but would
avoid creating some unused contexts.
All in all, it is a bit annoying to have to fix stuff again and again
(the 3.9 drawing model change broke it also, because Scintilla has a
somewhat bizarre toolkit usage as it has platform layers), but it should
be fairly easy this time.
Regards,
Colomban
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]