diff --git a/FL/Fl_Check_Browser.H b/FL/Fl_Check_Browser.H index f4fd54d89..771558dc4 100644 --- a/FL/Fl_Check_Browser.H +++ b/FL/Fl_Check_Browser.H @@ -88,6 +88,10 @@ class FL_EXPORT Fl_Check_Browser : public Fl_Browser_ { void check_none(); int value() const; // currently selected item char *text(int item) const; // returns pointer to internal buffer + + protected: + + int handle(int); }; #endif // Fl_Check_Browser_H diff --git a/src/Fl_Check_Browser.cxx b/src/Fl_Check_Browser.cxx index 05c7b1c32..aada7b4f9 100644 --- a/src/Fl_Check_Browser.cxx +++ b/src/Fl_Check_Browser.cxx @@ -266,6 +266,11 @@ void Fl_Check_Browser::check_none() { redraw(); } +int Fl_Check_Browser::handle(int event) { + if (event==FL_PUSH) + deselect(); + return Fl_Browser_::handle(event); +} // // End of "$Id$".