summaryrefslogtreecommitdiff
path: root/examples/cairotwisted.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/cairotwisted.c')
-rw-r--r--examples/cairotwisted.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/cairotwisted.c b/examples/cairotwisted.c
index 8323453a..217e5e44 100644
--- a/examples/cairotwisted.c
+++ b/examples/cairotwisted.c
@@ -471,8 +471,8 @@ draw_text (cairo_t *cr,
const char *font,
const char *text)
{
- PangoSimpleLayout *layout;
- PangoLine *line;
+ PangoLayout *layout;
+ PangoLayoutLine *line;
PangoFontDescription *desc;
cairo_font_options_t *font_options;
@@ -484,18 +484,18 @@ draw_text (cairo_t *cr,
cairo_set_font_options (cr, font_options);
cairo_font_options_destroy (font_options);
- layout = pango_cairo_create_simple_layout (cr);
+ layout = pango_cairo_create_layout (cr);
desc = pango_font_description_from_string (font);
- pango_simple_layout_set_font_description (layout, desc);
+ pango_layout_set_font_description (layout, desc);
pango_font_description_free (desc);
- pango_simple_layout_set_text (layout, text, -1);
+ pango_layout_set_text (layout, text, -1);
- line = pango_lines_get_line (pango_simple_layout_get_lines (layout), 0, NULL, NULL);
+ line = pango_lines_get_line (pango_layout_get_lines (layout), 0, NULL, NULL);
cairo_move_to (cr, x, y);
- pango_cairo_line_path (cr, line);
+ pango_cairo_layout_line_path (cr, line);
g_object_unref (layout);
}