From f8b372787562aecb2a4a55b336c196f47b5c1b0c Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Sun, 11 Feb 2024 00:21:05 +0100 Subject: Use updated text in draw There is a caveat: The text should always have the same size and layout as the original one for which the pango layout was calculated --- src/button.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/button.c') diff --git a/src/button.c b/src/button.c index 24eaf0c..7bee576 100644 --- a/src/button.c +++ b/src/button.c @@ -9,6 +9,7 @@ Button *button_simple_create(PangoAlignment align, Color color, Color line_color btn->align = align; btn->color = color; btn->line_color = line_color; + CAST(btn, ButtonSimple)->action = NULL; return btn; } -- cgit v1.2.3