shithub: choc

Download patch

ref: 21d67cd73010165b0da5bf0c10439db2fb4f882a
parent: cc93c797921f08d48ac8dfc64fefcf7725a84517
author: Simon Howard <[email protected]>
date: Tue May 12 14:01:27 EDT 2009

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

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1520

--- a/textscreen/txt_inputbox.c
+++ b/textscreen/txt_inputbox.c
@@ -144,6 +144,8 @@
         free(*((char **)inputbox->value));
         *((char **) inputbox->value) = strdup(inputbox->buffer);
 
+        TXT_EmitSignal(&inputbox->widget, "changed");
+
         inputbox->editing = 0;
     }