Reworked version of patches by Marcian Lytwyn

<marcian.lytwyn@advcsi.com>


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35899 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2012-12-16 22:51:23 +00:00
parent 02259cada8
commit ec3e830817
4 changed files with 56 additions and 20 deletions

View file

@ -544,6 +544,11 @@ static float sizes[] = {4.0, 6.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0,
backing: NSBackingStoreRetained
defer: YES
screen: nil];
if (!self)
{
return nil;
}
[self setTitle: _(@"Font Panel")];
[self setBecomesKeyOnlyIfNeeded: YES];
@ -623,7 +628,7 @@ static float sizes[] = {4.0, 6.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0,
// label for selection of size
label = [[NSTextField alloc] initWithFrame: sizeTitleRect];
[label setCell: [GSBrowserTitleCell new]];
[label setCell: AUTORELEASE([GSBrowserTitleCell new])];
[label setFont: [NSFont boldSystemFontOfSize: 0]];
[label setAlignment: NSCenterTextAlignment];
[label setDrawsBackground: YES];
@ -642,7 +647,6 @@ static float sizes[] = {4.0, 6.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0,
[sizeField setEditable: YES];
[sizeField setAllowsEditingTextAttributes: NO];
[sizeField setAlignment: NSCenterTextAlignment];
[sizeField setBackgroundColor: [NSColor windowFrameTextColor]];
[sizeField setAutoresizingMask: NSViewMinXMargin | NSViewMinYMargin];
[sizeField setDelegate: self];
[sizeField setTag: NSFPSizeField];