[9430] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: #defining if Gtk has support for GtkCTree
daemon@ATHENA.MIT.EDU (Tim Janik)
Mon Oct 19 23:21:09 1998
From: Tim Janik <timj@gtk.org>
Date: Tue, 20 Oct 1998 05:16:08 +0200 (CEST)
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:
>
> 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
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null