`gdk_pixbuf_render_to_drawable_alpha' will be deprecated

Adam Harvey matlhdam at iinet.net.au
Fri May 9 16:52:51 CEST 2003


On Fri, 2003-05-09 at 22:39, Danny wrote:
> Hi!
> 
> it seems that the new function I use is introduced in gtk 2.2.
> How to do version check ?

(Long time lurker, first time poster.)

You could either use the gtk_check_version function, or use the
GTK_MAJOR_VERSION and GTK_MINOR_VERSION constants. Something like:

if (GTK_MAJOR_VERSION == 2 && GTK_MINOR_VERSION < 2) {
	/* use old function */
}
else {
	/* use new function /*
}

ought to do it.

Adam




More information about the Xfce4-dev mailing list