From: Evan M. <ev...@go...> - 2005-08-10 19:31:02
|
On 8/9/05, Paolo Martini <p.m...@ne...> wrote: > > Doing (2) would require you to use the CVS version of GTK. This means > > the bindings wouldn't work for current GTK, but it does mean that > > they'll use the proper interface for newer GTK. >=20 > Ubuntu still not have the latest gtk, except in the developement > version. They say to "not use breezy yet, please" - and the release > date is October - aww. I think I'll get an external drive and try to > install it anyway, any better ideas? Even when Ubuntu has the latest GTK, there will still be millions of people running the older GTKs. I think supporting GtkCairo is inevitable. To answer Duncan's remark: > Duncan (answering emails with Axel about GtkCairo): > > I think that the GTK+/Cairo integration is at a lower level than that. > > The GtkCairo widget was only a temporary thing I believe. The > > intention is that you can use cairo to draw on any widget, much like > > you use GDK functions to draw on a the GdkWindow of a GtkDrawingArea. > > > > So it should be possible to use cairo functions on a cairo surface > > obtained from the GdkWindow of a drawing area (or indeed any other > > widget). This is pretty much what GtkCairo does. It's complicated by the GTK drawing system -- see e.g. http://cvs.cairographics.org/gtkcairo/gtkcairo/gdkcairo.c?rev=3DHEAD&view= =3Dmarkup for the hoops the GDK integration jumps through. Paolo, check out the GtkCairo demo for the API you'll be supporting.=20 There's simply a "paint" signal that passes in the cairo that will be drawn on: http://cvs.cairographics.org/gtkcairo/tests/demo.c?rev=3D1.10&view=3Dmarkup |