summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/input_choice.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/input_choice.cxx b/test/input_choice.cxx
index 6f7471330..80cce18a2 100644
--- a/test/input_choice.cxx
+++ b/test/input_choice.cxx
@@ -32,6 +32,10 @@ void buttcb(Fl_Widget*,void*data) {
flag ^= 1;
if ( flag ) in->activate();
else in->deactivate();
+ if (in->changed()) {
+ printf("Callback: changed() is set\n");
+ in->clear_changed();
+ }
}
void input_choice_cb(Fl_Widget*,void*data) {