summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2007-01-16 09:57:30 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2007-01-16 09:57:30 +0000
commit0b0ddda32b910686118f8d7669364bc6d172e37a (patch)
tree1b470cc8310ad68b28df9742db8046184d70a356 /examples
parent56e7902a63f2036ea46a386c9d80827d6420f143 (diff)
downloadpango-0b0ddda32b910686118f8d7669364bc6d172e37a.tar.gz
Use pango_layout(_iter)?_get_line_readonly() instead of
2007-01-16 Behdad Esfahbod <behdad@gnome.org> * 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
Diffstat (limited to 'examples')
-rw-r--r--examples/cairotwisted.c5
1 files changed, 4 insertions, 1 deletions
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);