From 6a5026055f47e66d7c40fc9a55fd35e5a68e61c3 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 8 Jun 2011 14:35:22 +0000 Subject: Tooltip test git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8788 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Tooltip.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Fl_Tooltip.cxx b/src/Fl_Tooltip.cxx index 20693c1a3..f69c33f92 100644 --- a/src/Fl_Tooltip.cxx +++ b/src/Fl_Tooltip.cxx @@ -59,7 +59,9 @@ public: void layout(); /** Shows the tooltip windows only if a tooltip text is available. */ void show() { - if (tip) Fl_Menu_Window::show(); + if (!tip) return; + + Fl_Menu_Window::show(); } }; @@ -154,7 +156,7 @@ static void tooltip_timeout(void*) { } /** - This method is called when the mouse pointer enters a widget. + This method is called when the mouse pointer enters a widget.

If this widget or one of its parents has a tooltip, enter it. This will do nothing if this is the current widget (even if the mouse moved out so an exit() was done and then moved back in). If no tooltip can -- cgit v1.2.3