Changeset 12070


Ignore:
Timestamp:
Mar 3, 2011, 3:53:30 AM (11 years ago)
Author:
livings124
Message:

(2.2x) when creating the dock icon badge view, we do not need to give it a frame

Location:
branches/2.2x/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2x/macosx/BadgeView.h

    r11617 r12070  
    3636}
    3737
    38 - (id) initWithFrame: (NSRect) frame lib: (tr_session *) lib;
     38- (id) initWithLib: (tr_session *) lib;
    3939
    4040- (BOOL) setRatesWithDownload: (CGFloat) downloadRate upload: (CGFloat) uploadRate;
  • branches/2.2x/macosx/BadgeView.m

    r11617 r12070  
    3636@implementation BadgeView
    3737
    38 - (id) initWithFrame: (NSRect) frame lib: (tr_session *) lib
     38- (id) initWithLib: (tr_session *) lib
    3939{
    40     if ((self = [super initWithFrame: frame]))
     40    if ((self = [super init]))
    4141    {
    4242        fLib = lib;
  • branches/2.2x/macosx/Badger.m

    r11759 r12070  
    3636        fCompleted = 0;
    3737       
    38         BadgeView * view = [[BadgeView alloc] initWithFrame: [[[NSApp dockTile] contentView] frame] lib: lib];
     38        BadgeView * view = [[BadgeView alloc] initWithLib: lib];
    3939        [[NSApp dockTile] setContentView: view];
    4040        [view release];
Note: See TracChangeset for help on using the changeset viewer.