----- Original Message ----
From: "Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum" 10353@lyskom.lysator.liu.se To: pike-devel@lists.lysator.liu.se Sent: Tue, August 31, 2010 11:25:02 AM Subject: Re: gtkfilechooserdialog.pre change
Speaking of "require"s, could we perhaps export which reqires that are enabled to the cpp somehow, so that you can test for them in the pike code as well? Case in point; the GTK2 version of Tools.PV wants to use GTK2.Widget()->get_window(), which requires gtk 2.14, but I have no way of testing if it exists, which led to the testsuite failing on some xenofarm machine (I forget which) that had an older GTK2.
I have all those available from pgtk_config.h, up to GTK216. They are defined as HAVE_GTK22, HAVE_GTK24, etc.
But, you should also be able to use the gtk/glib macros GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION.
Oh, hmm, from the pike level, you can probably use has_index(object,"get_window"), but I could probably add the macros also.