aboutsummaryrefslogtreecommitdiff
path: root/src/button.h
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2023-11-26 23:19:19 +0100
committerFederico Angelilli <code@fedang.net>2023-11-26 23:19:19 +0100
commit7da583328758e3e8e3ace381aab9e98313f76767 (patch)
treeb131ab8e893444217750864e184aa5af9a4cfcd9 /src/button.h
parent52668d11f90a25c917d29353bf3a2dab2fa13bc4 (diff)
Change behaviour of button_simple_set_text
Diffstat (limited to 'src/button.h')
-rw-r--r--src/button.h3
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);