summaryrefslogtreecommitdiff
path: root/textscreen/txt_radiobutton.c
diff options
context:
space:
mode:
authorSimon Howard2006-12-16 01:53:54 +0000
committerSimon Howard2006-12-16 01:53:54 +0000
commit20a1417b2e619ee1801737463a7e800096dcd3f8 (patch)
treed5cb01e5af4d2a32a246c014fb434326ad02ac6f /textscreen/txt_radiobutton.c
parente54cabaad0cc69797cca2dc4055a3ef90d2729e6 (diff)
downloadchocolate-doom-20a1417b2e619ee1801737463a7e800096dcd3f8.tar.gz
chocolate-doom-20a1417b2e619ee1801737463a7e800096dcd3f8.tar.bz2
chocolate-doom-20a1417b2e619ee1801737463a7e800096dcd3f8.zip
Add function to set radio button labels.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 779
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);
+}
+