diff options
author | Matthias Clasen <mclasen@redhat.com> | 2022-06-24 23:00:58 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-07-04 11:17:21 -0400 |
commit | 778df432eb9bba4441d4c47cdbfbcd385b1e9d42 (patch) | |
tree | 39b66234cc325aafdddcebd76ec888d0cc099aaa /examples/first-steps.c | |
parent | 249ce63ebb3d5666d5559184dd7c2c65e32695c2 (diff) | |
download | pango-778df432eb9bba4441d4c47cdbfbcd385b1e9d42.tar.gz |
Convert to the pango2 prefix
This makes pango 2 not just parallel-installable
with pango 1.x, but parallel-usable in the same
process.
Diffstat (limited to 'examples/first-steps.c')
-rw-r--r-- | examples/first-steps.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/first-steps.c b/examples/first-steps.c index ea27bee1..df9f460c 100644 --- a/examples/first-steps.c +++ b/examples/first-steps.c @@ -6,22 +6,22 @@ static void draw_text (cairo_t *cr) { - PangoLayout *layout; - PangoFontDescription *desc; + Pango2Layout *layout; + Pango2FontDescription *desc; - /* Create a PangoLayout */ - layout = pango_cairo_create_layout (cr); + /* Create a Pango2Layout */ + layout = pango2_cairo_create_layout (cr); /* Set the text */ - pango_layout_set_text (layout, "Text", -1); + pango2_layout_set_text (layout, "Text", -1); /* Set a font for the layout */ - desc = pango_font_description_from_string ("Sans Bold 20"); - pango_layout_set_font_description (layout, desc); - pango_font_description_free (desc); + desc = pango2_font_description_from_string ("Sans Bold 20"); + pango2_layout_set_font_description (layout, desc); + pango2_font_description_free (desc); /* Show the layout */ - pango_cairo_show_layout (cr, layout); + pango2_cairo_show_layout (cr, layout); /* Free the layout object */ g_object_unref (layout); |