Changeset 10372


Ignore:
Timestamp:
Mar 14, 2010, 2:59:37 AM (12 years ago)
Author:
livings124
Message:

remove unnecessary setHidden:'s

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoTrackersViewController.h

    r10371 r10372  
    4747- (void) updateInfo;
    4848
    49 
    5049- (void) saveViewSize;
    5150- (void) clearView;
  • trunk/macosx/InfoWindowController.m

    r10371 r10372  
    216216       
    217217        //remove old view
    218         [oldView setHidden: YES];
    219218        [oldView removeFromSuperview];
    220219    }
     
    315314    windowRect.size.height += difference;
    316315   
    317     if ([fViewController respondsToSelector: @selector(saveViewSize)]) //a little bit hacky, but avoids an extra required method
     316    if ([fViewController respondsToSelector: @selector(saveViewSize)]) //a little bit hacky, but avoids requiring an extra method
    318317    {
    319318        [window setMinSize: NSMakeSize([window minSize].width, NSHeight(windowRect) - NSHeight(viewRect) + TAB_MIN_HEIGHT)];
     
    326325    }
    327326   
    328     viewRect.size.width = windowRect.size.width;
     327    viewRect.size.width = NSWidth(windowRect);
    329328    [view setFrame: viewRect];
    330329   
    331330    [window setFrame: windowRect display: YES animate: oldTabTag != INVALID];
    332331    [[window contentView] addSubview: view];
    333    
    334     [view setHidden: NO];
    335332   
    336333    if ([NSApp isOnSnowLeopardOrBetter] && (fCurrentTabTag == TAB_FILE_TAG || oldTabTag == TAB_FILE_TAG)
Note: See TracChangeset for help on using the changeset viewer.