Changeset 785


Ignore:
Timestamp:
Aug 15, 2006, 2:36:21 AM (15 years ago)
Author:
livings124
Message:

Show checks instead of y's for DL and UL columns.

Location:
trunk/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.h

    r784 r785  
    3131    NSArray * fTorrents;
    3232    NSMutableArray * fPeers, * fFiles;
    33     NSImage * fAppIcon, * fDotGreen, * fDotRed;
     33    NSImage * fAppIcon, * fDotGreen, * fDotRed, * fCheckImage;
    3434   
    3535    IBOutlet NSTabView * fTabView;
  • trunk/macosx/InfoWindowController.m

    r784 r785  
    5959    fDotGreen = [NSImage imageNamed: @"GreenDot.tiff"];
    6060    fDotRed = [NSImage imageNamed: @"RedDot.tiff"];
     61    fCheckImage = [NSImage imageNamed: @"NSMenuCheckmark"];
    6162   
    6263    fTorrents = [[NSArray alloc] init];
     
    453454            return [[peer objectForKey: @"Connected"] boolValue] ? fDotGreen : fDotRed;
    454455        else if ([ident isEqualToString: @"UL To"])
    455             return [[peer objectForKey: @"UL To"] boolValue] ? @"Y" : @"";
     456            return [[peer objectForKey: @"UL To"] boolValue] ? fCheckImage : nil;
    456457        else if ([ident isEqualToString: @"DL From"])
    457             return [[peer objectForKey: @"DL From"] boolValue] ? @"Y" : @"";
     458            return [[peer objectForKey: @"DL From"] boolValue] ? fCheckImage : nil;
    458459        else if ([ident isEqualToString: @"Client"])
    459460            return [peer objectForKey: @"Client"];
Note: See TracChangeset for help on using the changeset viewer.