diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-08-02 15:32:00 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-08-02 15:32:00 +0000 |
| commit | 836d2fac260c861106e0d96203bea4a04c9dd2d2 (patch) | |
| tree | e265f4eab743fc350dac1af4394fe88440c7181c /src/Fl_Button.cxx | |
| parent | bd069130577e28b3b26dbb5637bb3172fe108e81 (diff) | |
Fix tooltips a la 2.0.
Update 1.1 tooltip interface to be identical to the 2.0 interface for
most things (no enter_area function right now...)
Add localized makedepend files (no system include files, just ../FL/bla.h)
so that builds recompile as necessary.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1516 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Button.cxx')
| -rw-r--r-- | src/Fl_Button.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/Fl_Button.cxx b/src/Fl_Button.cxx index 50934aaee..76eb8b5fd 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.1 2001/08/01 21:24:49 easysw Exp $" +// "$Id: Fl_Button.cxx,v 1.4.2.6.2.2 2001/08/02 15:31:59 easysw Exp $" // // Button widget for the Fast Light Tool Kit (FLTK). // @@ -26,7 +26,6 @@ #include <FL/Fl.H> #include <FL/Fl_Button.H> #include <FL/Fl_Group.H> -#include <FL/Fl_Tooltip.H> // tooltip // There are a lot of subclasses, named Fl_*_Button. Some of // them are implemented by setting the type() value and testing it @@ -61,15 +60,11 @@ int Fl_Button::handle(int event) { int newval; switch (event) { case FL_ENTER: - Fl_Tooltip::enter(this); // tooltip - return 1; // tooltip case FL_LEAVE: // if ((value_?selection_color():color())==FL_GRAY) redraw(); - Fl_Tooltip::exit(this); // tooltip return 1; case FL_PUSH: case FL_DRAG: - Fl_Tooltip::exit(this); // tooltip if (Fl::event_inside(this)) { if (type() == FL_RADIO_BUTTON) newval = 1; else newval = !oldval; @@ -82,7 +77,6 @@ int Fl_Button::handle(int event) { } return 1; case FL_RELEASE: - Fl_Tooltip::exit(this); // tooltip if (value_ == oldval) { if (when() & FL_WHEN_NOT_CHANGED) do_callback(); return 1; @@ -124,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.2.6.2.1 2001/08/01 21:24:49 easysw Exp $". +// End of "$Id: Fl_Button.cxx,v 1.4.2.6.2.2 2001/08/02 15:31:59 easysw Exp $". // |
