summaryrefslogtreecommitdiff
path: root/src/setup/txt_keyinput.c
diff options
context:
space:
mode:
authorSimon Howard2011-10-20 22:00:46 +0000
committerSimon Howard2011-10-20 22:00:46 +0000
commit31a58552ffc647d2c87b557441d3725c6fba2b37 (patch)
tree093cf65027a121ddcf927fa772e503a6f502c545 /src/setup/txt_keyinput.c
parentabfc7bfe709000c1ca82654b64e6b43d3e06308a (diff)
downloadchocolate-doom-31a58552ffc647d2c87b557441d3725c6fba2b37.tar.gz
chocolate-doom-31a58552ffc647d2c87b557441d3725c6fba2b37.tar.bz2
chocolate-doom-31a58552ffc647d2c87b557441d3725c6fba2b37.zip
Use TXT_MessageBox where appropriate.
Subversion-branch: /branches/v2-branch Subversion-revision: 2446
Diffstat (limited to 'src/setup/txt_keyinput.c')
-rw-r--r--src/setup/txt_keyinput.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/setup/txt_keyinput.c b/src/setup/txt_keyinput.c
index 6f1ee4dd..47e782be 100644
--- a/src/setup/txt_keyinput.c
+++ b/src/setup/txt_keyinput.c
@@ -70,22 +70,12 @@ static void ReleaseGrab(TXT_UNCAST_ARG(window), TXT_UNCAST_ARG(unused))
static void OpenPromptWindow(txt_key_input_t *key_input)
{
txt_window_t *window;
- txt_label_t *label;
// Silently update when the shift button is held down.
key_input->check_conflicts = !TXT_GetModifierState(TXT_MOD_SHIFT);
- window = TXT_NewWindow(NULL);
- TXT_SetWindowAction(window, TXT_HORIZ_LEFT, NULL);
- TXT_SetWindowAction(window, TXT_HORIZ_CENTER,
- TXT_NewWindowAbortAction(window));
- TXT_SetWindowAction(window, TXT_HORIZ_RIGHT, NULL);
-
- label = TXT_NewLabel("Press the new key...");
-
- TXT_AddWidget(window, label);
- TXT_SetWidgetAlign(label, TXT_HORIZ_CENTER);
+ window = TXT_MessageBox(NULL, "Press the new key...");
TXT_SetKeyListener(window, KeyPressCallback, key_input);