summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2011-06-08 14:35:22 +0000
committerMatthias Melcher <fltk@matthiasm.com>2011-06-08 14:35:22 +0000
commit6a5026055f47e66d7c40fc9a55fd35e5a68e61c3 (patch)
treee583de46ca244d97df4138ad3f152877f810a207 /src
parentb95f1c40bb745c2b6ce8f87ca2c306cb782d325b (diff)
Tooltip test
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8788 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Tooltip.cxx6
1 files changed, 4 insertions, 2 deletions
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.
<P>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