From 0b0ddda32b910686118f8d7669364bc6d172e37a Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 16 Jan 2007 09:57:30 +0000 Subject: Use pango_layout(_iter)?_get_line_readonly() instead of 2007-01-16 Behdad Esfahbod * examples/cairotwisted.c (draw_text): * pango/pangocairo-win32font.c (max_glyph_width): * pango/pangofc-font.c (max_glyph_width): * pango/pangowin32.c (max_glyph_width), (pango_win32_render_layout): * pango/pangox.c (pango_x_render_layout): Use pango_layout(_iter)?_get_line_readonly() instead of pango_layout(_iter)?_get_line(). svn path=/trunk/; revision=2146 --- examples/cairotwisted.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/cairotwisted.c b/examples/cairotwisted.c index e2293b51..6903cf96 100644 --- a/examples/cairotwisted.c +++ b/examples/cairotwisted.c @@ -330,7 +330,10 @@ draw_text (cairo_t *cr) pango_layout_set_text (layout, "It was a dream... Oh Just a dream...", -1); - line = pango_layout_get_line (layout, 0); + /* Use pango_layout_get_line() instead of pango_layout_get_line_readonly() + * for older versions of pango + */ + line = pango_layout_get_line_readonly (layout, 0); pango_cairo_layout_line_path (cr, line); -- cgit v1.2.1