diff options
author | Simon Howard | 2009-05-12 18:01:27 +0000 |
---|---|---|
committer | Simon Howard | 2009-05-12 18:01:27 +0000 |
commit | 21d67cd73010165b0da5bf0c10439db2fb4f882a (patch) | |
tree | 57b3c455a27095241cd8ff6bfdb443f271c2ab0c /textscreen | |
parent | cc93c797921f08d48ac8dfc64fefcf7725a84517 (diff) | |
download | chocolate-doom-21d67cd73010165b0da5bf0c10439db2fb4f882a.tar.gz chocolate-doom-21d67cd73010165b0da5bf0c10439db2fb4f882a.tar.bz2 chocolate-doom-21d67cd73010165b0da5bf0c10439db2fb4f882a.zip |
Make txt_inputboxes emit a "changed" signal when their value is changed.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1520
Diffstat (limited to 'textscreen')
-rw-r--r-- | textscreen/txt_inputbox.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |