diff options
| author | Federico Angelilli <code@fedang.net> | 2023-11-26 23:19:19 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2023-11-26 23:19:19 +0100 |
| commit | 7da583328758e3e8e3ace381aab9e98313f76767 (patch) | |
| tree | b131ab8e893444217750864e184aa5af9a4cfcd9 /src/button.h | |
| parent | 52668d11f90a25c917d29353bf3a2dab2fa13bc4 (diff) | |
Change behaviour of button_simple_set_text
Diffstat (limited to 'src/button.h')
| -rw-r--r-- | src/button.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/button.h b/src/button.h index 4f4285f..0fb821c 100644 --- a/src/button.h +++ b/src/button.h @@ -42,7 +42,8 @@ typedef struct { Button *button_simple_create(PangoAlignment align, Color color, Color line_color); -void button_simple_set_text(Button *btn, const char *text, Color text_color); +// Takes ownership of text +void button_simple_set_text(Button *btn, char *text, Color text_color); const char *button_simple_get_text(Button *btn); |
