ref: b20f94345cd4eb779acf08f3017d02d56aaad9a6
parent: 4306fa59932ef037855d8b783245987377038477
author: Simon Howard <[email protected]>
date: Thu Aug 31 14:11:07 EDT 2006
Change name of escape window actions to 'Close' and add a separate 'Abort' button creator. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 575
--- a/textscreen/txt_window_action.c
+++ b/textscreen/txt_window_action.c
@@ -107,7 +107,21 @@
TXT_WidgetKeyPress(window, KEY_ENTER);
}
+// An action with the name "close" the closes the window
+
txt_window_action_t *TXT_NewWindowEscapeAction(txt_window_t *window)
+{
+ txt_window_action_t *action;
+
+ action = TXT_NewWindowAction(KEY_ESCAPE, "Close");
+ TXT_SignalConnect(action, "pressed", WindowCloseCallback, window);
+
+ return action;
+}
+
+// Exactly the same as the above, but the button is named "abort"
+
+txt_window_action_t *TXT_NewWindowAbortAction(txt_window_t *window)
{
txt_window_action_t *action;
--- a/textscreen/txt_window_action.h
+++ b/textscreen/txt_window_action.h
@@ -43,6 +43,10 @@
txt_window_action_t *TXT_NewWindowEscapeAction(txt_window_t *window);
+// Same as above, but the button is named "abort"
+
+txt_window_action_t *TXT_NewWindowAbortAction(txt_window_t *window);
+
// Accept button that does nothing
txt_window_action_t *TXT_NewWindowAcceptAction(txt_window_t *window);