Changeset 367


Ignore:
Timestamp:
Jun 15, 2006, 6:24:03 AM (16 years ago)
Author:
livings124
Message:

Potentially get rid of (unnoticeable) overlap in simple progress bar.

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r365 r367  
    4242- (id) initWithPath: (NSString *) path lib: (tr_handle_t *) lib
    4343{
    44     if ((self = [self initWithHash: nil path: path lib: lib
    45         privateTorrent: nil publicTorrent: nil
    46         date: nil stopRatioSetting: nil ratioLimit: nil]))
     44    self = [self initWithHash: nil path: path lib: lib
     45            privateTorrent: nil publicTorrent: nil
     46            date: nil stopRatioSetting: nil ratioLimit: nil];
     47   
     48    if (self)
    4749    {
    4850        if (!fPublicTorrent)
    4951            [self trashFile: path];
    5052    }
    51    
    5253    return self;
    5354}
     
    5556- (id) initWithHistory: (NSDictionary *) history lib: (tr_handle_t *) lib
    5657{
    57     if ((self = [self initWithHash: [history objectForKey: @"TorrentHash"]
     58    self = [self initWithHash: [history objectForKey: @"TorrentHash"]
    5859                path: [history objectForKey: @"TorrentPath"] lib: lib
    5960                privateTorrent: [history objectForKey: @"PrivateCopy"]
     
    6162                date: [history objectForKey: @"Date"]
    6263                stopRatioSetting: [history objectForKey: @"StopRatioSetting"]
    63                 ratioLimit: [history objectForKey: @"RatioLimit"]]))
     64                ratioLimit: [history objectForKey: @"RatioLimit"]];
     65   
     66    if (self)
    6467    {
    6568        NSString * downloadFolder;
     
    7376            [self start];
    7477    }
    75    
    7678    return self;
    7779}
     
    591593        /* We can't move it to the trash, let's try just to delete it
    592594           (will work if it is on a remote volume) */
    593         if( ![[NSFileManager defaultManager]
    594                 removeFileAtPath: path handler: nil] )
    595         {
    596             NSLog( [@"Could not trash " stringByAppendingString: path] );
    597         }
     595        if (![[NSFileManager defaultManager] removeFileAtPath: path handler: nil])
     596            NSLog([@"Could not trash " stringByAppendingString: path]);
    598597    }
    599598}
  • trunk/macosx/TorrentCell.m

    r354 r367  
    3232
    3333- (void) placeBar: (NSImage *) barImage width: (float) width point: (NSPoint) point;
    34 - (void) buildSimpleBar: (int) width point: (NSPoint) point;
     34- (void) buildSimpleBar: (int) widthInt point: (NSPoint) point;
    3535- (void) buildAdvancedBar: (int) width point: (NSPoint) point;
    3636
     
    120120}
    121121
    122 - (void) buildSimpleBar: (int) width point: (NSPoint) point
    123 {
    124     width -= 2.0;
     122- (void) buildSimpleBar: (int) widthInt point: (NSPoint) point
     123{
     124    float width = (float)widthInt - 2.0;
    125125    if ([fTorrent isSeeding])
    126126    {
Note: See TracChangeset for help on using the changeset viewer.