[Xfce4-commits] CVS: xfce4/libxfcegui4/libxfcegui4 netk-util.c, 1.15, 1.16
Brian J. Tarricone
bjt23 at cornell.edu
Thu Mar 18 01:04:10 CET 2004
man, i must be on crack. i could have sworn i looked in gtkversion.h
just the other day, and that the macro expanded to use the variables
(which, of course, makes no sense at compile-time). blah, stupid.
-brian
Olivier Fourdan wrote:
>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
>>
>>
More information about the Xfce4-dev
mailing list