From e00e26cb6dc4a2fd589069550e34960d0f06be31 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 26 Aug 2009 11:18:53 +0000 Subject: New Pango code placed in #ifdef so not compiled on GTK+ 1.x. --- gtk/PlatGTK.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index eb11b504b..c094763fc 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -1371,6 +1371,8 @@ void SurfaceImpl::DrawTextTransparent(PRectangle rc, Font &font_, int ybase, con } } +#ifdef USE_PANGO + class ClusterIterator { PangoLayoutIter *iter; PangoRectangle pos; @@ -1405,6 +1407,8 @@ public: } }; +#endif + void SurfaceImpl::MeasureWidths(Font &font_, const char *s, int len, int *positions) { if (font_.GetID()) { int totalWidth = 0; -- cgit v1.2.3