Re: Cairo based engine api for GTK+ 3.0
- From: Thomas Wood <thos gnome org>
- To: Chris Wilson <chris chris-wilson co uk>
- Cc: gtk-devel-list gnome org
- Subject: Re: Cairo based engine api for GTK+ 3.0
- Date: Mon, 13 Jul 2009 00:57:04 +0100
On Thu, 2009-06-18 at 22:45 +0100, Chris Wilson wrote:
> On Thu, 2009-06-18 at 22:35 +0100, Thomas Wood wrote:
> > Thanks Chris. Obviously once the API is converted to pass in cairo
> > contexts, the context creation/destruction will happen outside of the
> > drawing functions.
> That's a relief. I was thinking to myself that it was a good job I'd
> just managed to eliminate some overhead from cairo_create()... :-)
Just a little up date on this; I've pushed a commit that changes the
gtk_paint_* API to take a cairo context rather than a GdkWindow. This
clearly breaks all widgets and so although it compiles, it won't run in
any shape or form.
I'm a bit undecided on how to proceed next. I could go through every
single use of gtk_paint_* in GTK+ and update it to the new API. However,
this will be somewhat tedious and lengthy task, and if we want to change
the API further (such as remove the GtkWidget pointer), I'd have to this
all over again.
Any thoughts would be welcome.
] [Thread Prev