summaryrefslogtreecommitdiff
path: root/textscreen/txt_dropdown.c
diff options
context:
space:
mode:
authorSimon Howard2006-12-16 01:53:17 +0000
committerSimon Howard2006-12-16 01:53:17 +0000
commite54cabaad0cc69797cca2dc4055a3ef90d2729e6 (patch)
tree63024fcc852b106b987780e147e39be680e67e47 /textscreen/txt_dropdown.c
parent2aa16d0ff38c02c96272c9af050a4d7e1715c3fb (diff)
downloadchocolate-doom-e54cabaad0cc69797cca2dc4055a3ef90d2729e6.tar.gz
chocolate-doom-e54cabaad0cc69797cca2dc4055a3ef90d2729e6.tar.bz2
chocolate-doom-e54cabaad0cc69797cca2dc4055a3ef90d2729e6.zip
Make dropdown lists emit a signal when set.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 778
Diffstat (limited to 'textscreen/txt_dropdown.c')
-rw-r--r--textscreen/txt_dropdown.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/textscreen/txt_dropdown.c b/textscreen/txt_dropdown.c
index 5c39bad5..c5c4f99f 100644
--- a/textscreen/txt_dropdown.c
+++ b/textscreen/txt_dropdown.c
@@ -69,6 +69,8 @@ static void ItemSelected(TXT_UNCAST_ARG(button), TXT_UNCAST_ARG(callback_data))
*callback_data->list->variable = callback_data->item;
+ TXT_EmitSignal(callback_data->list, "changed");
+
// Close the window
TXT_CloseWindow(callback_data->window);