draw: set_markup wants NONULL arg

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-07-30 10:35:37 +02:00
parent 4ef2cdffc9
commit c13cffe1eb
1 changed files with 1 additions and 1 deletions

View File

@ -389,7 +389,7 @@ draw_text(draw_context_t *ctx, font_t *font,
- (pdata->margin.left - (pdata->margin.left
+ pdata->margin.right))); + pdata->margin.right)));
pango_layout_set_ellipsize(ctx->layout, PANGO_ELLIPSIZE_END); pango_layout_set_ellipsize(ctx->layout, PANGO_ELLIPSIZE_END);
pango_layout_set_markup(ctx->layout, text, len); pango_layout_set_markup(ctx->layout, NONULL(text), len);
pango_layout_set_font_description(ctx->layout, font->desc); pango_layout_set_font_description(ctx->layout, font->desc);
pango_layout_get_pixel_extents(ctx->layout, NULL, &ext); pango_layout_get_pixel_extents(ctx->layout, NULL, &ext);