diff options
| author | Simon Tatham <anakin@pobox.com> | 2009-01-24 17:58:42 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2009-01-24 17:58:42 +0000 |
| commit | ff62f0aaff860b37a3dfc99956a67efac145a70d (patch) | |
| tree | bfc0b72c1f0a6ed8f701b721a6f861a4330be2cc | |
| parent | 47c3878dc78028ea8750402b7f1f1e6e59b41198 (diff) | |
| download | puzzles-ff62f0aaff860b37a3dfc99956a67efac145a70d.zip puzzles-ff62f0aaff860b37a3dfc99956a67efac145a70d.tar.gz puzzles-ff62f0aaff860b37a3dfc99956a67efac145a70d.tar.bz2 puzzles-ff62f0aaff860b37a3dfc99956a67efac145a70d.tar.xz | |
Add an automatic check for HAVE_SENSIBLE_ABSOLUTE_SIZE_FUNCTION by
using PANGO_CHECK_VERSION. (Irritatingly, the latter is not
available in all versions of Pango, so we have to be cautious about
using it at all. *sigh*)
[originally from svn r8430]
| -rw-r--r-- | gtk.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -25,7 +25,12 @@ #include "puzzles.h" #if GTK_CHECK_VERSION(2,0,0) -#define USE_PANGO +# define USE_PANGO +# ifdef PANGO_VERSION_CHECK +# if PANGO_VERSION_CHECK(1,8,0) +# define HAVE_SENSIBLE_ABSOLUTE_SIZE_FUNCTION +# endif +# endif #endif #ifdef DEBUGGING |