Make sure tooltip window starts off on screen.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23756 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2006-10-04 13:36:56 +00:00
parent a375c38059
commit 42a0cfaa9e
4 changed files with 59 additions and 16 deletions

View file

@ -4351,10 +4351,13 @@ static NSView* findByTag(NSView *view, int aTag, unsigned *level)
- (void) setToolTip: (NSString *)string
{
GSToolTips *tt = [GSToolTips tipsForView: self];
if (_rFlags.has_tooltips == 1 || [string length] > 0)
{
GSToolTips *tt = [GSToolTips tipsForView: self];
_rFlags.has_tooltips = 1;
[tt setToolTip: string];
_rFlags.has_tooltips = 1;
[tt setToolTip: string];
}
}
- (NSString *) toolTip