`gdk_pixbuf_render_to_drawable_alpha' will be deprecated

Olivier Fourdan fourdan at xfce.org
Fri May 9 17:10:04 CEST 2003


Hi,

Even simpler :

#if defined (GTK_CHECK_VERSION) && GTK_CHECK_VERSION(2,2,0)
        /* New code */
#else
        /* Old code */
#endif
 
Cheers,
Olivier.

On Fri, 2003-05-09 at 16:52, Adam Harvey wrote:
> 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
> 
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> http://moongroup.com/mailman/listinfo/xfce4-dev
-- 
Olivier Fourdan <fourdan at xfce.org>
http://www.xfce.org




More information about the Xfce4-dev mailing list