summaryrefslogtreecommitdiff
path: root/textscreen/txt_separator.c
diff options
context:
space:
mode:
authorSimon Howard2006-05-22 00:20:48 +0000
committerSimon Howard2006-05-22 00:20:48 +0000
commit283f71d0f500541b6273316120e252b03f22fb03 (patch)
tree7a46a0b56e025a70872f54b5e97d6d7773e5144e /textscreen/txt_separator.c
parentd90a63ed267516f8d35b4d8399dbcb5e52a1e692 (diff)
downloadchocolate-doom-283f71d0f500541b6273316120e252b03f22fb03.tar.gz
chocolate-doom-283f71d0f500541b6273316120e252b03f22fb03.tar.bz2
chocolate-doom-283f71d0f500541b6273316120e252b03f22fb03.zip
Add a signals architecture to allow callbacks on GUI events.
Make all widget classes initialise widgets by calling TXT_InitWidget. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 501
Diffstat (limited to 'textscreen/txt_separator.c')
-rw-r--r--textscreen/txt_separator.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/textscreen/txt_separator.c b/textscreen/txt_separator.c
index 2013edac..038fa19b 100644
--- a/textscreen/txt_separator.c
+++ b/textscreen/txt_separator.c
@@ -71,9 +71,8 @@ txt_separator_t *TXT_NewSeparator(char *label)
separator = malloc(sizeof(txt_separator_t));
- separator->widget.widget_class = &txt_separator_class;
+ TXT_InitWidget(separator, &txt_separator_class);
separator->widget.selectable = 0;
- separator->widget.visible = 1;
if (label != NULL)
{