1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 09:13:06 +00:00

Simplify by updating button tracking for change in frame rather than a change in bounds.

This commit is contained in:
Mitchell Livingston 2006-08-07 00:11:07 +00:00
parent d5011bfe74
commit 8f43dd1da9
2 changed files with 2 additions and 14 deletions

View file

@ -54,7 +54,7 @@
name: NSWindowDidResignKeyNotification object: nil];
[nc addObserver: self selector: @selector(resetBounds:)
name: NSViewBoundsDidChangeNotification object: nil];
name: NSViewFrameDidChangeNotification object: nil];
}
return self;
}

View file

@ -1667,12 +1667,6 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
if (!show)
[fStatusBar setHidden: YES];
//reset tracking rects for filter buttons
[fNoFilterButton resetBounds: nil];
[fSeedFilterButton resetBounds: nil];
[fDownloadFilterButton resetBounds: nil];
[fPauseFilterButton resetBounds: nil];
}
- (void) toggleFilterBar: (id) sender
@ -1726,12 +1720,6 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
[fFilterBar setHidden: YES];
[fWindow makeFirstResponder: fTableView];
}
//reset tracking rects for filter buttons
[fNoFilterButton resetBounds: nil];
[fSeedFilterButton resetBounds: nil];
[fDownloadFilterButton resetBounds: nil];
[fPauseFilterButton resetBounds: nil];
}
- (void) toggleAdvancedBar: (id) sender