diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2007-06-07 17:38:49 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2007-06-07 17:38:49 +0000 |
| commit | 5d7d16cc8c106a2af8dc1985cb5d331c4aa6e62e (patch) | |
| tree | 1ad446be430fee5b0da82cd0c40680c5b48b97a6 /test/input_choice.cxx | |
| parent | 5ba77af1ec7e4f2d0897ea12baf258bbeacaa410 (diff) | |
Making sure that the 'changed' flag is set on every menu pulldown. (STR #1693)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5890 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/input_choice.cxx')
| -rw-r--r-- | test/input_choice.cxx | 4 |
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) { |
