Add an automatic check for HAVE_SENSIBLE_ABSOLUTE_SIZE_FUNCTION by
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 24 Jan 2009 17:58:42 +0000 (17:58 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Sat, 24 Jan 2009 17:58:42 +0000 (17:58 +0000)
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*)

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@8430 cda61777-01e9-0310-a592-d414129be87e

gtk.c

diff --git a/gtk.c b/gtk.c
index 5f2ef22..1b42926 100644 (file)
--- a/gtk.c
+++ b/gtk.c
 #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