diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-12-14 16:48:13 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-12-14 16:48:13 +0000 |
| commit | 5c3b2f74bc97b5ffdd2a7834c47b285b2f84aaee (patch) | |
| tree | a36299c3c5156078de8b007e6515c590787262a3 /src/Fl_Button.cxx | |
| parent | ce129e16208dd7271549db64fe778a0ae3266f5e (diff) | |
More tweeking of plastic boxtypes.
Redraw parent if child button loses focus and is using FL_NO_BOX.
Fix test/Makefile to build mandelbrot and shiny demos right.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1844 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Button.cxx')
| -rw-r--r-- | src/Fl_Button.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Fl_Button.cxx b/src/Fl_Button.cxx index 4b26865c9..ae4ddcadf 100644 --- a/src/Fl_Button.cxx +++ b/src/Fl_Button.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Button.cxx,v 1.4.2.6.2.6 2001/12/11 16:03:11 easysw Exp $" +// "$Id: Fl_Button.cxx,v 1.4.2.6.2.7 2001/12/14 16:48:13 easysw Exp $" // // Button widget for the Fast Light Tool Kit (FLTK). // @@ -108,7 +108,8 @@ int Fl_Button::handle(int event) { case FL_FOCUS : case FL_UNFOCUS : if (Fl::visible_focus()) { - redraw(); + if (event == FL_UNFOCUS && box() == FL_NO_BOX) parent()->redraw(); + else redraw(); return 1; } else return 0; case FL_KEYBOARD : @@ -138,5 +139,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.2.6.2.6 2001/12/11 16:03:11 easysw Exp $". +// End of "$Id: Fl_Button.cxx,v 1.4.2.6.2.7 2001/12/14 16:48:13 easysw Exp $". // |
