From 21d67cd73010165b0da5bf0c10439db2fb4f882a Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Tue, 12 May 2009 18:01:27 +0000 Subject: 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(+) (limited to 'textscreen') 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; } -- cgit v1.2.3