Hello All, I just came across a useful function, that does not seem to be bound in perl -- gdk_pixbuf_get_option. The function does not seem to be documented in the C api. It is however needed to handle thumbnails acoording to the "Thumbnail Managing Standard". It can be done with Gnome2, but a) I don't want to pull Gnome2 in just for that and b) the interface is not much good and wouldn't save me much work anyway. Following patch should add that function: --- libgtk2-perl-1.072.orig/xs/GdkPixbuf.xs 2005-02-05 22:11:50.000000000 +0100 +++ libgtk2-perl-1.072/xs/GdkPixbuf.xs 2005-02-05 22:16:28.000000000 +0100 @@ -535,6 +535,12 @@ gfloat saturation gboolean pixelate +## G_CONST_RETURN gchar * gdk_pixbuf_get_option (GdkPixbuf *pixbuf, const gchar *key) +const gchar * +gdk_pixbuf_get_option (pixbuf, key) + GdkPixbuf *pixbuf + const gchar *key + ## void gdk_pixbuf_fill (GdkPixbuf *pixbuf, guint32 pixel) =for apidoc =for arg pixel a packed RGBA value. ------------------------------------------------------------------------------- Jan 'Bulb' Hudec <bulb ucw cz>
Attachment:
signature.asc
Description: Digital signature