summaryrefslogtreecommitdiff
path: root/textscreen/txt_inputbox.c
diff options
context:
space:
mode:
authorSimon Howard2010-12-10 20:31:46 +0000
committerSimon Howard2010-12-10 20:31:46 +0000
commit56824b130b786aab49876a71c6c768a17c5a4f1c (patch)
treef05611777e7b7014d0764fc957ea3b2c2543a054 /textscreen/txt_inputbox.c
parent9caebe584ccb95239b2ed360d4bce3dffc5ecfea (diff)
downloadchocolate-doom-56824b130b786aab49876a71c6c768a17c5a4f1c.tar.gz
chocolate-doom-56824b130b786aab49876a71c6c768a17c5a4f1c.tar.bz2
chocolate-doom-56824b130b786aab49876a71c6c768a17c5a4f1c.zip
Replace txt_widget_t#selectable with a callback function to query
whether the widget is selectable. This stops the table code from selecting things that aren't really selectable - eg. empty tables, scrollpanes containing unselectable widgets, etc. Fixes a bug with the warp menu (thanks Proteh). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2207
Diffstat (limited to 'textscreen/txt_inputbox.c')
-rw-r--r--textscreen/txt_inputbox.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/textscreen/txt_inputbox.c b/textscreen/txt_inputbox.c
index 3e52bae9..852346f3 100644
--- a/textscreen/txt_inputbox.c
+++ b/textscreen/txt_inputbox.c
@@ -232,6 +232,7 @@ static void TXT_InputBoxMousePress(TXT_UNCAST_ARG(inputbox),
txt_widget_class_t txt_inputbox_class =
{
+ TXT_AlwaysSelectable,
TXT_InputBoxSizeCalc,
TXT_InputBoxDrawer,
TXT_InputBoxKeyPress,
@@ -242,6 +243,7 @@ txt_widget_class_t txt_inputbox_class =
txt_widget_class_t txt_int_inputbox_class =
{
+ TXT_AlwaysSelectable,
TXT_InputBoxSizeCalc,
TXT_InputBoxDrawer,
TXT_IntInputBoxKeyPress,