Re: [gtk-list] Re: #defining if Gtk has support for GtkCTree



On Tue, 20 Oct 1998, Tim Janik wrote:

> > i want such a configure.in that if the gtk found is an unstable version, 
> > #define _UNSTABLEGTK_
> > or better, if gtk found has support for GtkCTree, #define something.
> > can i do that? how?

> since each widget is implemented within its own .h and .c files, the easiest
> (and eventually too obvious) way to test for the presence of the ctree widget
> is a #ifdef __GTK_CTREE_H__.
hmm.:)

> but since the ctree API has recently undergone some major changes, mostly
> with regards to the ctreenode handling, i'd say you are better off with
> checking gtk's corresponding version macros, defined in gtkfeatures.h:
> 
> /* Gtk+ 1.1.2 version tag
>  * - ctree function name changes
>  */
> #define GTK_HAVE_FEATURES_1_1_2                         1-1-2
ok. but GTK_HAVE_FEATURES_1_1_2 will not be undef'd in Gtk+ 1.1.3 if some
funcs etc does not change, right?

---
bash# Disq/OMHAF
bash# (old mcdonald had a farm)




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]