Re: gdk_drawable_get_image not available in GDraw.drawable
Jacques Garrigue <[email protected]> Wed, 4 Feb 2015 10:07:08 +0900
| Newsgroups | gmane.comp.lang.ocaml.lib.gtk |
|---|---|
| Message-ID | <[email protected]> |
On 2015/01/20 11:21, Kenichi Asai wrote: > > Hello, > > I want to use the gdk_drawable_get_image function as included in: > > https://developer.gnome.org/gdk2/2.24/gdk2-Drawing-Primitives.html > > Most of the drawing primitives in this page are available in the > GDraw.drawable class: > > http://lablgtk.forge.ocamlcore.org/refdoc/GDraw.drawable-c.html > > However, gdk_drawable_get_image (and gdk_drawable_copy_to_image) > appears to be missing. Can I use it? Or it is not supported because > it is deprecated perhaps? Actually it is available, but not bound in GDraw. The function name is Gdk.Image.get, and it works on raw drawables rather than the wrapping object. It might be a good idea to add it to GDraw, since there is already a put_image method. Jacques