1 From 7c881c6bed8dd5c929a7aeb2108b87e7758955a7 Mon Sep 17 00:00:00 2001
2 From: Holger Freyther <ich@tamarin.(none)>
3 Date: Tue, 17 Mar 2009 07:06:47 +0100
4 Subject: [PATCH] Work with ancient pango versions...
7 WebCore/platform/graphics/gtk/FontGtk.cpp | 8 ++++++++
8 1 files changed, 8 insertions(+), 0 deletions(-)
10 diff --git a/WebCore/platform/graphics/gtk/FontGtk.cpp b/WebCore/platform/graphics/gtk/FontGtk.cpp
11 index 5e3c069..b21dc73 100644
12 --- a/WebCore/platform/graphics/gtk/FontGtk.cpp
13 +++ b/WebCore/platform/graphics/gtk/FontGtk.cpp
14 @@ -526,11 +526,19 @@ static void setPangoAttributes(const Font* font, const TextRun& run, PangoLayout
15 // We should create the layout with our actual context but we can't access it from here.
16 static PangoLayout* getDefaultPangoLayout(const TextRun& run)
18 +#if PANGO_VERSION_CHECK(1, 22, 0)
19 static PangoFontMap* map = pango_ft2_font_map_new();
20 static PangoContext* pangoContext = pango_font_map_create_context(map);
21 PangoLayout* layout = pango_layout_new(pangoContext);
25 + static PangoFT2FontMap* map = PANGO_FT2_FONT_MAP(pango_ft2_font_map_new());
26 + static PangoContext* pangoContext = pango_ft2_font_map_create_context(map);
27 + PangoLayout* layout = pango_layout_new(pangoContext);