From 80465e4bfff4fd298fa6fb40ccb624d4abd57709 Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Mon, 13 May 2002 05:05:11 +0000 Subject: 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 --- src/Fl_Group.cxx | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'src/Fl_Group.cxx') 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 #include #include -#include // 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 $". // -- cgit v1.2.3