Changeset 381


Ignore:
Timestamp:
Jun 16, 2006, 3:13:58 AM (16 years ago)
Author:
livings124
Message:

I changed my mind about the images being static.

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/TorrentTableView.h

    r340 r381  
    3939   
    4040    IBOutlet NSMenu     * fContextRow, * fContextNoRow;
     41   
     42    NSImage             * fResumeOnIcon, * fResumeOffIcon, * fPauseOnIcon, * fPauseOffIcon,
     43                        * fRevealOnIcon, * fRevealOffIcon;
    4144}
    4245- (void) setTorrents: (NSArray *) torrents;
  • trunk/macosx/TorrentTableView.m

    r380 r381  
    4545@implementation TorrentTableView
    4646
    47 static NSImage * fResumeOnIcon, * fResumeOffIcon, * fPauseOnIcon, * fPauseOffIcon,
    48                 * fRevealOnIcon, * fRevealOffIcon;
    49 
    5047- (id) initWithCoder: (NSCoder *) decoder
    5148{
    5249    if ((self = [super initWithCoder: decoder]))
    5350    {
    54         if (!fResumeOnIcon)
    55             fResumeOnIcon = [NSImage imageNamed: @"ResumeOn.png"];
    56         if (!fResumeOffIcon)
    57             fResumeOffIcon = [NSImage imageNamed: @"ResumeOff.png"];
    58         if (!fPauseOnIcon)
    59             fPauseOnIcon = [NSImage imageNamed: @"PauseOn.png"];
    60         if (!fPauseOffIcon)
    61             fPauseOffIcon = [NSImage imageNamed: @"PauseOff.png"];
    62         if (!fRevealOnIcon)
    63             fRevealOnIcon = [NSImage imageNamed: @"RevealOn.png"];
    64         if (!fRevealOffIcon)
    65             fRevealOffIcon = [NSImage imageNamed: @"RevealOff.png"];
     51        fResumeOnIcon = [NSImage imageNamed: @"ResumeOn.png"];
     52        fResumeOffIcon = [NSImage imageNamed: @"ResumeOff.png"];
     53        fPauseOnIcon = [NSImage imageNamed: @"PauseOn.png"];
     54        fPauseOffIcon = [NSImage imageNamed: @"PauseOff.png"];
     55        fRevealOnIcon = [NSImage imageNamed: @"RevealOn.png"];
     56        fRevealOffIcon = [NSImage imageNamed: @"RevealOff.png"];
    6657    }
    6758   
Note: See TracChangeset for help on using the changeset viewer.