Re: a few new bits and bobs

From: Date: Wed, 21 Jun 2006 18:11:50 +0000
Subject: Re: a few new bits and bobs
References: 1  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-3136@lists.php.net to get a copy of this message
Steph, > +override gdk_pixbuf_add_alpha > + zend_bool substitute = TRUE; > + if (ZEND_NUM_ARGS() > 1) { > + } else { > + if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "|b", &substitute)) > + return; > + } > + pixbuf = gdk_pixbuf_add_alpha(GDK_PIXBUF(PHPG_GOBJECT(this_ptr)), > (gboolean)substitute, r, g, b); This one is better, but needs substitute set to false whenever no parameter is given, and not take a boolean parameter at all. -- Regards/MfG, Christian Weiske

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.gtk.dev (#3136) next »