foxygit / doom Log in
commit 21d67cd73010165b0da5bf0c10439db2fb4f882a
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Tue May 12 18:01:27 2009 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Tue May 12 18:01:27 2009 +0000

    Make txt_inputboxes emit a "changed" signal when their value is changed.

    Subversion-branch: /trunk/chocolate-doom
    Subversion-revision: 1520
---
 textscreen/txt_inputbox.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/textscreen/txt_inputbox.c b/textscreen/txt_inputbox.c
index 2798cce4..9151d431 100644
--- a/textscreen/txt_inputbox.c
+++ b/textscreen/txt_inputbox.c
@@ -144,6 +144,8 @@ static int TXT_InputBoxKeyPress(TXT_UNCAST_ARG(inputbox), int key)
         free(*((char **)inputbox->value));
         *((char **) inputbox->value) = strdup(inputbox->buffer);

+        TXT_EmitSignal(&inputbox->widget, "changed");
+
         inputbox->editing = 0;
     }