diff options
| author | Bill Spitzak <spitzak@gmail.com> | 2002-05-13 05:05:11 +0000 |
|---|---|---|
| committer | Bill Spitzak <spitzak@gmail.com> | 2002-05-13 05:05:11 +0000 |
| commit | 80465e4bfff4fd298fa6fb40ccb624d4abd57709 (patch) | |
| tree | f623ce9c237a4cd0bb142e07dd4949be97149865 /src/Fl_Group.cxx | |
| parent | a35c5a6a2e74b9c9aa87f71b699a4b86cda0b857 (diff) | |
Backported the fltk2.0 tooltips. This may be somewhat binary incompatable
as Fl_Widget::tooltip(x) is no longer an inline (though the previous version
will work if there is at least one call to the new one). It may be better
to just enable tooltips all the time. Also Fl_Tooltip::enable() is changed,
but few programs call that.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2210 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Group.cxx')
| -rw-r--r-- | src/Fl_Group.cxx | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/Fl_Group.cxx b/src/Fl_Group.cxx index c09e6f0c9..5622d4941 100644 --- a/src/Fl_Group.cxx +++ b/src/Fl_Group.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Group.cxx,v 1.8.2.8.2.13 2002/05/10 00:18:37 easysw Exp $" +// "$Id: Fl_Group.cxx,v 1.8.2.8.2.14 2002/05/13 05:05:11 spitzak Exp $" // // Group widget for the Fast Light Tool Kit (FLTK). // @@ -34,7 +34,6 @@ #include <FL/Fl_Window.H> #include <FL/fl_draw.H> #include <stdlib.h> -#include <FL/Fl_Tooltip.H> // tooltip Fl_Group* Fl_Group::current_; @@ -139,11 +138,9 @@ int Fl_Group::handle(int event) { return 0; case FL_KEYBOARD: - Fl_Tooltip::exit(this); // tooltip return navigation(navkey()); case FL_SHORTCUT: - Fl_Tooltip::exit(this); // tooltip for (i = children(); i--;) { o = a[i]; if (o->takesevents() && Fl::event_inside(o) && send(o,FL_SHORTCUT)) @@ -158,8 +155,6 @@ int Fl_Group::handle(int event) { return 0; case FL_ENTER: - Fl_Tooltip::enter(this); // tooltip - case FL_MOVE: for (i = children(); i--;) { o = a[i]; @@ -192,7 +187,6 @@ int Fl_Group::handle(int event) { return 0; case FL_PUSH: - Fl_Tooltip::exit(this); // tooltip for (i = children(); i--;) { o = a[i]; if (o->takesevents() && Fl::event_inside(o)) { @@ -235,9 +229,6 @@ int Fl_Group::handle(int event) { } return 1; - case FL_LEAVE: // tooltip - Fl_Tooltip::exit(this); // tooltip - default: // For all other events, try to give to each child, starting at focus: for (i = 0; i < children(); i ++) @@ -589,5 +580,5 @@ void Fl_Group::draw_outside_label(const Fl_Widget& w) const { } // -// End of "$Id: Fl_Group.cxx,v 1.8.2.8.2.13 2002/05/10 00:18:37 easysw Exp $". +// End of "$Id: Fl_Group.cxx,v 1.8.2.8.2.14 2002/05/13 05:05:11 spitzak Exp $". // |
