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




On Mon, 19 Oct 1998, Kemal 'Disq' Hadimli wrote:
> 
> or better, if gtk found has support for GtkCTree, #define something.
>

Use autoconf; in configure.in, run a test program which uses the CTree,
set a variable in config.h depending on whether it works.
 
A simpler thing to use is:
extern const guint gtk_major_version;
extern const guint gtk_minor_version;
extern const guint gtk_micro_version;

(from gtkmain.h)

But it's more error-prone that autoconf because you have to keep track of
which versions work.

Havoc




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