Author: matt
Date: 2011-06-08 07:35:22 -0700 (Wed, 08 Jun 2011)
New Revision: 8788
Log:
Tooltip test
Modified:
branches/branch-1.3/src/Fl_Tooltip.cxx
Modified: branches/branch-1.3/src/Fl_Tooltip.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Tooltip.cxx 2011-06-08 10:47:03 UTC (rev
8787)
+++ branches/branch-1.3/src/Fl_Tooltip.cxx 2011-06-08 14:35:22 UTC (rev
8788)
@@ -59,7 +59,9 @@
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 @@
}
/**
- 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
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit