From 20a1417b2e619ee1801737463a7e800096dcd3f8 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 16 Dec 2006 01:53:54 +0000 Subject: Add function to set radio button labels. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 779 --- textscreen/txt_radiobutton.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'textscreen/txt_radiobutton.c') 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); +} + -- cgit v1.2.3