diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2000-03-02 19:10:49 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2000-03-02 19:10:49 +0000 |
| commit | d6caf3aff8f9be57e15491134e4f6fb6941c2a17 (patch) | |
| tree | a315884c626c7b4da9259ae4c6999ba334e80403 /src | |
| parent | 443c4883cc5aa9d254943f0b1965796a9ef521a7 (diff) | |
Fl_Button and friends didn't honor FL_WHEN_NOT_CHANGED.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1020 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Button.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Fl_Button.cxx b/src/Fl_Button.cxx index a2b355b86..888ee7fbd 100644 --- a/src/Fl_Button.cxx +++ b/src/Fl_Button.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Button.cxx,v 1.4 1999/01/07 19:17:17 mike Exp $" +// "$Id: Fl_Button.cxx,v 1.4.2.1 2000/03/02 19:10:49 mike Exp $" // // Button widget for the Fast Light Tool Kit (FLTK). // @@ -77,7 +77,10 @@ int Fl_Button::handle(int event) { } return 1; case FL_RELEASE: - if (value_ == oldval) return 1; + if (value_ == oldval) { + if (when() & FL_WHEN_NOT_CHANGED) do_callback(); + return 1; + } if (type() == FL_RADIO_BUTTON) setonly(); else if (type() == FL_TOGGLE_BUTTON) @@ -115,5 +118,5 @@ Fl_Button::Fl_Button(int x,int y,int w,int h, const char *l) } // -// End of "$Id: Fl_Button.cxx,v 1.4 1999/01/07 19:17:17 mike Exp $". +// End of "$Id: Fl_Button.cxx,v 1.4.2.1 2000/03/02 19:10:49 mike Exp $". // |
