get the torrent action button to appear pressed in

This commit is contained in:
Mitchell Livingston 2007-08-08 02:44:32 +00:00
parent 4c7d5256fa
commit 0588684061
2 changed files with 5 additions and 4 deletions

View File

@ -2208,6 +2208,7 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
return YES;
}
#warning get rid of delegate and make a notification
- (void) tableViewSelectionDidChange: (NSNotification *) notification
{
[fInfoController updateInfoForTorrents: [fDisplayedTorrents objectsAtIndexes: [fTableView selectedRowIndexes]]];

View File

@ -105,10 +105,9 @@
if ([self pointInActionRect: fClickPoint])
{
#warning use icon that doesn't change?
[self display]; //ensure button is pushed down
[self displayTorrentMenuForEvent: event];
#warning get icon to change back
fClickPoint = NSZeroPoint;
}
else if (![self pointInPauseRect: fClickPoint] && ![self pointInRevealRect: fClickPoint])
{
@ -384,11 +383,12 @@
[image compositeToPoint: NSMakePoint(rect.origin.x, NSMaxY(rect)) operation: NSCompositeSourceOver];
//action icon
#warning make change
if (![fDefaults boolForKey: @"SmallView"])
{
#warning make change
rect = [self actionRectForRow: i];
[fActionOffIcon compositeToPoint: NSMakePoint(rect.origin.x, NSMaxY(rect)) operation: NSCompositeSourceOver];
image = NSPointInRect(fClickPoint, rect) ? fActionOnIcon : fActionOffIcon;
[image compositeToPoint: NSMakePoint(rect.origin.x, NSMaxY(rect)) operation: NSCompositeSourceOver];
}
}
}