aboutsummaryrefslogtreecommitdiff
path: root/src/button.c
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2024-02-11 00:21:05 +0100
committerFederico Angelilli <code@fedang.net>2024-02-11 00:21:05 +0100
commitf8b372787562aecb2a4a55b336c196f47b5c1b0c (patch)
tree08edce1bd88acdad6b9f2519fa901d359078e44d /src/button.c
parentf459a5088528ecd0a19716ce5a4432c8a86a994a (diff)
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
Diffstat (limited to 'src/button.c')
-rw-r--r--src/button.c1
1 files changed, 1 insertions, 0 deletions
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;
}