diff options
author | Simon Howard | 2006-05-22 00:20:48 +0000 |
---|---|---|
committer | Simon Howard | 2006-05-22 00:20:48 +0000 |
commit | 283f71d0f500541b6273316120e252b03f22fb03 (patch) | |
tree | 7a46a0b56e025a70872f54b5e97d6d7773e5144e /textscreen/txt_table.c | |
parent | d90a63ed267516f8d35b4d8399dbcb5e52a1e692 (diff) | |
download | chocolate-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_table.c')
-rw-r--r-- | textscreen/txt_table.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/textscreen/txt_table.c b/textscreen/txt_table.c index 5ae9ee62..4e2d1f96 100644 --- a/textscreen/txt_table.c +++ b/textscreen/txt_table.c @@ -408,12 +408,10 @@ txt_widget_class_t txt_table_class = void TXT_InitTable(txt_table_t *table, int columns) { + TXT_InitWidget(table, &txt_table_class); table->columns = columns; table->widgets = NULL; table->num_widgets = 0; - table->widget.widget_class = &txt_table_class; - table->widget.visible = 1; - table->widget.selectable = 1; table->selected_x = 0; table->selected_y = 0; } |