[9387] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: #defining if Gtk has support for GtkCTree
daemon@ATHENA.MIT.EDU (Havoc Pennington)
Sun Oct 18 17:56:12 1998
Date: Sun, 18 Oct 1998 16:52:13 -0500 (CDT)
From: Havoc Pennington <rhpennin@midway.uchicago.edu>
To: gtk-list@redhat.com
In-Reply-To: <Pine.LNX.3.96.981019001858.4855A-100000@heart.of.gold>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
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
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null