mirror of
https://github.com/transmission/transmission
synced 2025-02-20 13:16:53 +00:00
get the torrent action button to appear pressed in
This commit is contained in:
parent
4c7d5256fa
commit
0588684061
2 changed files with 5 additions and 4 deletions
|
@ -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]]];
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue