summaryrefslogtreecommitdiff
path: root/examples/first-steps.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/first-steps.c')
-rw-r--r--examples/first-steps.c18
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);