diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-04-14 20:49:06 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-04-14 20:49:06 +0000 |
| commit | 0f61132a755a1267bbf7d0a9b72c6a033e64b8ec (patch) | |
| tree | 12d69829584ec3999042410894a07e2d0828c722 | |
| parent | b5306348048f705280427c74ca3fae03862a1938 (diff) | |
Remove unnecessary tooltip handle code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2082 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | src/Fl_Tooltip.cxx | 31 |
1 files changed, 2 insertions, 29 deletions
diff --git a/src/Fl_Tooltip.cxx b/src/Fl_Tooltip.cxx index 5b1c8d1e6..32b689333 100644 --- a/src/Fl_Tooltip.cxx +++ b/src/Fl_Tooltip.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Tooltip.cxx,v 1.38.2.12 2002/04/14 02:43:48 easysw Exp $" +// "$Id: Fl_Tooltip.cxx,v 1.38.2.13 2002/04/14 20:49:06 easysw Exp $" // // Tooltip source file for the Fast Light Tool Kit (FLTK). // @@ -61,36 +61,9 @@ class Fl_Tooltip_Window : public Fl_Menu_Window { : Fl_Menu_Window(W,H,l) {} Fl_Tooltip_Window(int X, int Y, int W, int H, const char *l = 0) : Fl_Menu_Window(X,Y,W,H,l) {} - - virtual FL_EXPORT int handle(int event); }; -int -Fl_Tooltip_Window::handle(int event) { - switch (event) { - case FL_KEYUP : - case FL_KEYDOWN : - case FL_SHORTCUT : - case FL_PUSH : - case FL_DRAG : - case FL_RELEASE : - case FL_MOUSEWHEEL : - if (Fl_Tooltip::widget) { - // Pass events to widget... - Fl::belowmouse(Fl_Tooltip::widget); - // Update event_x() and event_y() to be relative to the - // widget's window, not the tooltip window... - Fl::e_x = Fl::e_x_root - Fl_Tooltip::widget->window()->x(); - Fl::e_y = Fl::e_y_root - Fl_Tooltip::widget->window()->y(); - return Fl_Tooltip::widget->handle(event); - } else return 0; - default : - return Fl_Menu_Window::handle(event); - } -} - - // // Tooltip label class... // @@ -250,5 +223,5 @@ Fl_Tooltip::tooltip_timeout(void *v) { // -// End of "$Id: Fl_Tooltip.cxx,v 1.38.2.12 2002/04/14 02:43:48 easysw Exp $". +// End of "$Id: Fl_Tooltip.cxx,v 1.38.2.13 2002/04/14 20:49:06 easysw Exp $". // |
