summaryrefslogtreecommitdiff
path: root/textscreen/txt_radiobutton.c
diff options
context:
space:
mode:
Diffstat (limited to 'textscreen/txt_radiobutton.c')
-rw-r--r--textscreen/txt_radiobutton.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/textscreen/txt_radiobutton.c b/textscreen/txt_radiobutton.c
index a653fa0c..7ede7211 100644
--- a/textscreen/txt_radiobutton.c
+++ b/textscreen/txt_radiobutton.c
@@ -143,3 +143,9 @@ txt_radiobutton_t *TXT_NewRadioButton(char *label, int *variable, int value)
return radiobutton;
}
+void TXT_SetRadioButtonLabel(txt_radiobutton_t *radiobutton, char *value)
+{
+ free(radiobutton->label);
+ radiobutton->label = strdup(value);
+}
+