[Xfce4-commits] CVS: xfce4/libxfcegui4/libxfcegui4 netk-util.c, 1.15, 1.16

Olivier Fourdan fourdan at xfce.org
Wed Mar 17 23:05:51 CET 2004


Brian,

Nope, I think you're wrong. GTK_CHECK_VERSION() is for compile time
checks as it returns the version as defined in the header used at
compile time.

What I do here is to check at runtime, so you can compile with gtk 2.2
and then upgrade to gtk 2.4 w/out recompiling, it still works.

Cheers,
Olivier. 


On Wed, 2004-03-17 at 22:53, Brian J. Tarricone wrote:
> On Wed, 17 Mar 2004, Oliver Fourdan wrote:
> 
> > Modified Files:
> > 	netk-util.c 
> > Log Message:
> > Use version checking of gtk at runtime.
> > 
> > Index: netk-util.c
> > ===================================================================
> [snip]
> > +    if ((gtk_major_version >=2) && (gtk_minor_version >= 3))
> [snip]
> 
> not that it really matters, but you can still use 
> GTK_CHECK_VERSION(x,y,z) for runtime checks - it just expands to 
> basically what you added.  it's just less to type using the macro, and 
> with my quest to allow everyone to be as lazy as possible...
> 
> 	-brian
> 
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> http://lunar-linux.org/mailman/listinfo/xfce4-dev
-- 
 - Olivier Fourdan - fourdan at xfce.org - http://www.xfce.org - 





More information about the Xfce4-dev mailing list