[gtkada] Addition of Gdk_New_From_Data into Gdk.Pixbuf

Arnaud Charlet charlet at adacore.com
Tue Jul 14 17:55:40 CEST 2009


> I checked out current (2009-07-14) svn trunk. I have attached a possible 
> patch usable on the trunk.
> I replaced the destroy cb and data with a boolean parameter used to tell 
> whether pixel data must be automatically freed.
> Does it fit what you have in mind?

Yes, that's close to what I had in mind.

> It would be possible to add another version, that would be generic and 
> would have an associated user data type.

Possibly, although nobody has had a need for it yet, so I'd suggest keeping
this possible solution (or the use of an abstract record as you suggested in
your previous email) for later if the need arises.

Thanks for the patch, I'll review it and integrate it!

Arno



More information about the gtkada mailing list