summaryrefslogtreecommitdiff
path: root/examples/parshape.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/parshape.c')
-rw-r--r--examples/parshape.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/parshape.c b/examples/parshape.c
index 3c79b9be..c09e1ddd 100644
--- a/examples/parshape.c
+++ b/examples/parshape.c
@@ -57,7 +57,7 @@ main (int argc, char *argv[])
while (pango_line_breaker_has_line (breaker))
{
- PangoLayoutLine *line;
+ PangoLine *line;
PangoRectangle ext;
gboolean ltr;
@@ -66,8 +66,8 @@ main (int argc, char *argv[])
PANGO_WRAP_CHAR,
PANGO_ELLIPSIZE_NONE);
- pango_layout_line_get_extents (line, NULL, &ext);
- line = pango_layout_line_justify (line, width);
+ pango_line_get_extents (line, NULL, &ext);
+ line = pango_line_justify (line, width);
pango_lines_add_line (lines, line, x, y - ext.y);
ltr = pango_line_breaker_get_direction (breaker) == PANGO_DIRECTION_LTR;
@@ -99,11 +99,11 @@ main (int argc, char *argv[])
for (int i = 0; i < pango_lines_get_line_count (lines); i++)
{
- PangoLayoutLine *line = pango_lines_get_line (lines, i, &x, &y);
+ PangoLine *line = pango_lines_get_line (lines, i, &x, &y);
cairo_save (cr);
cairo_move_to (cr, x / (double)PANGO_SCALE, y / (double)PANGO_SCALE);
- pango_cairo_show_layout_line (cr, line);
+ pango_cairo_show_line (cr, line);
cairo_restore (cr);
}