mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
I changed my mind about the images being static.
This commit is contained in:
parent
6b4e664c0f
commit
e5aab6902a
2 changed files with 9 additions and 15 deletions
|
@ -38,6 +38,9 @@
|
|||
NSPoint fClickPoint;
|
||||
|
||||
IBOutlet NSMenu * fContextRow, * fContextNoRow;
|
||||
|
||||
NSImage * fResumeOnIcon, * fResumeOffIcon, * fPauseOnIcon, * fPauseOffIcon,
|
||||
* fRevealOnIcon, * fRevealOffIcon;
|
||||
}
|
||||
- (void) setTorrents: (NSArray *) torrents;
|
||||
|
||||
|
|
|
@ -44,25 +44,16 @@
|
|||
|
||||
@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"];
|
||||
fResumeOnIcon = [NSImage imageNamed: @"ResumeOn.png"];
|
||||
fResumeOffIcon = [NSImage imageNamed: @"ResumeOff.png"];
|
||||
fPauseOnIcon = [NSImage imageNamed: @"PauseOn.png"];
|
||||
fPauseOffIcon = [NSImage imageNamed: @"PauseOff.png"];
|
||||
fRevealOnIcon = [NSImage imageNamed: @"RevealOn.png"];
|
||||
fRevealOffIcon = [NSImage imageNamed: @"RevealOff.png"];
|
||||
}
|
||||
|
||||
return self;
|
||||
|
|
Loading…
Reference in a new issue