Torsten Schoenfeld <kaffeeti...@gmx.de> writes:
>
> gdk_pixbuf_set_option

I though of using that too, so as to hold xpm "x_hot" and "y_hot" values
in the same place they'd come back from the loader.  Couple of lines
below.

> not part of the public API, but rather only available to backends

Hard to tell how non-public it's meant to be.  You'd think a set()
corresponding to a get() would be fairly reasonable.

diff --git a/xs/GdkPixbuf.xs b/xs/GdkPixbuf.xs
index 8f470b1..45be7af 100644
--- a/xs/GdkPixbuf.xs
+++ b/xs/GdkPixbuf.xs
@@ -19,6 +19,7 @@
  * $Id$
  */
 
+#define GDK_PIXBUF_ENABLE_BACKEND 1 /* for gdk_pixbuf_set_option() prototype */
 #include "gtk2perl.h"
 
 static void
@@ -992,6 +993,15 @@ gdk_pixbuf_get_formats (class=NULL)
 	g_slist_free (formats);
 	PERL_UNUSED_VAR (ax);
 
+## gdk_pixbuf_set_option() is a "back end" function, supposedly not
+## protected by the same interface guarantees as other things.
+##
+## gboolean gdk_pixbuf_set_option (GdkPixbuf *pixbuf, const gchar *key, const gchar *value);
+gboolean gdk_pixbuf_set_option (pixbuf, key, value)
+	GdkPixbuf *pixbuf
+	const gchar *key
+	const gchar *value
+
 #endif /* >= 2.2.0 */
 
 #if GTK_CHECK_VERSION(2,4,0)

-- 
The Bachelor is someone, married or not, who does not in his or her heart
entirely understand why you would take a pizza out of a perfectly sound
takeaway box and put it on a nice clean plate.  (Darrel Bristow-Bovey)
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list

Reply via email to