shithub: choc

Download patch

ref: 20a1417b2e619ee1801737463a7e800096dcd3f8
parent: e54cabaad0cc69797cca2dc4055a3ef90d2729e6
author: Simon Howard <[email protected]>
date: Fri Dec 15 20:53:54 EST 2006

Add function to set radio button labels.

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 779

--- a/textscreen/txt_radiobutton.c
+++ b/textscreen/txt_radiobutton.c
@@ -143,3 +143,9 @@
     return radiobutton;
 }
 
+void TXT_SetRadioButtonLabel(txt_radiobutton_t *radiobutton, char *value)
+{
+    free(radiobutton->label);
+    radiobutton->label = strdup(value);
+}
+
--- a/textscreen/txt_radiobutton.h
+++ b/textscreen/txt_radiobutton.h
@@ -35,6 +35,7 @@
 };
 
 txt_radiobutton_t *TXT_NewRadioButton(char *label, int *variable, int value);
+void TXT_SetRadioButtonLabel(txt_radiobutton_t *radiobutton, char *value);
 
 #endif /* #ifndef TXT_RADIOBUTTON_H */