mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 20:50:38 +00:00
Use resetCursorRects
This commit is contained in:
parent
c84fa5a10f
commit
0e61c251bf
1 changed files with 4 additions and 4 deletions
|
@ -70,7 +70,7 @@ static Class pathCellClass;
|
||||||
pathCellClass = classId;
|
pathCellClass = classId;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) _resetTrackingRect
|
- (void) resetCursorRects
|
||||||
{
|
{
|
||||||
[[self superview] removeTrackingRect: _trackingTag];
|
[[self superview] removeTrackingRect: _trackingTag];
|
||||||
_trackingTag = [[self superview] addTrackingRect: [self frame]
|
_trackingTag = [[self superview] addTrackingRect: [self frame]
|
||||||
|
@ -88,7 +88,7 @@ static Class pathCellClass;
|
||||||
[self setURL: nil];
|
[self setURL: nil];
|
||||||
[self setDelegate: nil];
|
[self setDelegate: nil];
|
||||||
[self setAllowedTypes: [NSArray arrayWithObject: NSFilenamesPboardType]];
|
[self setAllowedTypes: [NSArray arrayWithObject: NSFilenamesPboardType]];
|
||||||
[self _resetTrackingRect];
|
[self resetCursorRects];
|
||||||
}
|
}
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
@ -465,7 +465,7 @@ static Class pathCellClass;
|
||||||
- (void) setFrame: (NSRect)frame
|
- (void) setFrame: (NSRect)frame
|
||||||
{
|
{
|
||||||
[super setFrame: frame];
|
[super setFrame: frame];
|
||||||
[self _resetTrackingRect];
|
[self resetCursorRects];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (instancetype) initWithCoder: (NSKeyedUnarchiver *)coder
|
- (instancetype) initWithCoder: (NSKeyedUnarchiver *)coder
|
||||||
|
@ -500,7 +500,7 @@ static Class pathCellClass;
|
||||||
[self setTarget: t];
|
[self setTarget: t];
|
||||||
}
|
}
|
||||||
|
|
||||||
[self _resetTrackingRect];
|
[self resetCursorRects];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue