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



On Mon, 19 Oct 1998, Kemal 'Disq' Hadimli 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__.
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


---
ciaoTJ



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