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

I changed my mind about the images being static.

This commit is contained in:
Mitchell Livingston 2006-06-16 03:13:58 +00:00
parent 6b4e664c0f
commit e5aab6902a
2 changed files with 9 additions and 15 deletions

View file

@ -38,6 +38,9 @@
NSPoint fClickPoint;
IBOutlet NSMenu * fContextRow, * fContextNoRow;
NSImage * fResumeOnIcon, * fResumeOffIcon, * fPauseOnIcon, * fPauseOffIcon,
* fRevealOnIcon, * fRevealOffIcon;
}
- (void) setTorrents: (NSArray *) torrents;

View file

@ -44,24 +44,15 @@
@implementation TorrentTableView
static NSImage * fResumeOnIcon, * fResumeOffIcon, * fPauseOnIcon, * fPauseOffIcon,
* fRevealOnIcon, * fRevealOffIcon;
- (id) initWithCoder: (NSCoder *) decoder
{
if ((self = [super initWithCoder: decoder]))
{
if (!fResumeOnIcon)
fResumeOnIcon = [NSImage imageNamed: @"ResumeOn.png"];
if (!fResumeOffIcon)
fResumeOffIcon = [NSImage imageNamed: @"ResumeOff.png"];
if (!fPauseOnIcon)
fPauseOnIcon = [NSImage imageNamed: @"PauseOn.png"];
if (!fPauseOffIcon)
fPauseOffIcon = [NSImage imageNamed: @"PauseOff.png"];
if (!fRevealOnIcon)
fRevealOnIcon = [NSImage imageNamed: @"RevealOn.png"];
if (!fRevealOffIcon)
fRevealOffIcon = [NSImage imageNamed: @"RevealOff.png"];
}