diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2021-09-13 14:07:27 +0200 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2021-09-13 14:07:27 +0200 |
| commit | 626cf43e5850af5f68375ff7c3ba3fd1a90fc7c3 (patch) | |
| tree | c2be58823b6695969bd2aa5d5b9682c55e7969e7 /swaynag/render.c | |
| parent | 88b8896b4147afd7cede2c724faa2d90a9b0306f (diff) | |
Rename pango_printf to render_text
This avoids using the pango_ prefix, reserved for functions coming
from the Pango library.
Diffstat (limited to 'swaynag/render.c')
| -rw-r--r-- | swaynag/render.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/swaynag/render.c b/swaynag/render.c index c159294e..d72f42c2 100644 --- a/swaynag/render.c +++ b/swaynag/render.c @@ -22,7 +22,7 @@ static uint32_t render_message(cairo_t *cairo, struct swaynag *swaynag) { cairo_set_source_u32(cairo, swaynag->type->text); cairo_move_to(cairo, padding, (int)(ideal_height - text_height) / 2); - pango_printf(cairo, swaynag->type->font, 1, false, + render_text(cairo, swaynag->type->font, 1, false, "%s", swaynag->message); return ideal_surface_height; @@ -50,7 +50,7 @@ static void render_details_scroll_button(cairo_t *cairo, cairo_set_source_u32(cairo, swaynag->type->button_text); cairo_move_to(cairo, button->x + border + padding, button->y + border + (button->height - text_height) / 2); - pango_printf(cairo, swaynag->type->font, 1, true, + render_text(cairo, swaynag->type->font, 1, true, "%s", button->text); } @@ -201,7 +201,7 @@ static uint32_t render_button(cairo_t *cairo, struct swaynag *swaynag, cairo_set_source_u32(cairo, swaynag->type->button_text); cairo_move_to(cairo, button->x + padding, button->y + padding); - pango_printf(cairo, swaynag->type->font, 1, true, + render_text(cairo, swaynag->type->font, 1, true, "%s", button->text); *x = button->x - border; |
