A little less buggy filter buttons (but not bug-free).

This commit is contained in:
Mitchell Livingston 2006-07-15 19:38:32 +00:00
parent bfc06d450c
commit bbad665cd0
3 changed files with 9 additions and 1 deletions

View File

@ -37,4 +37,6 @@
- (void) setText: (NSString *) text;
- (void) setEnabled: (BOOL) enable;
- (void) resetBounds: (NSNotification *) notification;
@end

View File

@ -162,7 +162,7 @@
- (void) resetBounds: (NSNotification *) notification
{
[self removeTrackingRect: fTrackingTag];
[self addTrackingRect: [self bounds] owner: self userData: nil assumeInside: NO];
fTrackingTag = [self addTrackingRect: [self bounds] owner: self userData: nil assumeInside: NO];
}
@end

View File

@ -1522,6 +1522,12 @@ static void sleepCallBack(void * controller, io_service_t y,
NSSize minSize = [fWindow contentMinSize];
minSize.height += heightChange;
[fWindow setContentMinSize: minSize];
//reset tracking rects for filter buttons
[fNoFilterButton resetBounds: nil];
[fSeedFilterButton resetBounds: nil];
[fDownloadFilterButton resetBounds: nil];
[fPauseFilterButton resetBounds: nil];
}
- (void) toggleFilterBar: (id) sender