aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2009-08-26 11:18:53 +0000
committernyamatongwe <unknown>2009-08-26 11:18:53 +0000
commite00e26cb6dc4a2fd589069550e34960d0f06be31 (patch)
treefc8fd818dce31b42eb8e0fd7c7ba32f9c5fbbf27
parentbba3a93ea7acdf2b12593c6fc427f948833541f1 (diff)
downloadscintilla-mirror-e00e26cb6dc4a2fd589069550e34960d0f06be31.tar.gz
New Pango code placed in #ifdef so not compiled on GTK+ 1.x.
-rw-r--r--gtk/PlatGTK.cxx4
1 files changed, 4 insertions, 0 deletions
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;