1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 01:57:52 +00:00

uncomment resizing code for localizations post-2.7

This commit is contained in:
Mitchell Livingston 2012-09-26 18:59:34 +00:00
parent ab0a1de8a4
commit 7a3f6e6010
3 changed files with 4 additions and 8 deletions

View file

@ -95,8 +95,6 @@
[fLocationImageView setImage: nil];
}
#warning enable after 2.7
/*
#warning when 10.7-only, switch to auto layout
[fMagnetLinkLabel sizeToFit];
@ -154,7 +152,6 @@
[fCancelButton setFrame: cancelButtonFrame];
[fStartCheck sizeToFit];
*/
}
- (void) windowDidLoad

View file

@ -51,8 +51,7 @@
[super dealloc];
}
#warning uncomment after 2.7
/*- (void) awakeFromNib
- (void) awakeFromNib
{
#warning remove when 10.7-only with auto layout
[fInfoSectionLabel sizeToFit];
@ -94,7 +93,7 @@
frame.size.width -= widthIncrease;
[field setFrame: frame];
}
}*/
}
- (void) setInfoForTorrents: (NSArray *) torrents
{

View file

@ -64,7 +64,7 @@
[[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(updateOptionsNotification:) name: @"UpdateOptionsNotification" object: nil];
#warning remove when 10.7-only with auto layout
/*const CGFloat padding = 6.0; //this shows as 8 in IB
const CGFloat padding = 6.0; //this shows as 8 in IB
[fPrioritySectionLabel sizeToFit];
[fPriorityLabel sizeToFit];
NSRect priorityPopUpFrame = [fPriorityPopUp frame];
@ -128,7 +128,7 @@
[fPeersConnectLabel sizeToFit];
NSRect peersConnectLabelFrame = [fPeersConnectLabel frame];
peersConnectLabelFrame.origin.x = NSMaxX(peersConnectFrame) + padding;
[fPeersConnectLabel setFrame: peersConnectLabelFrame];*/
[fPeersConnectLabel setFrame: peersConnectLabelFrame];
}
- (void) dealloc