mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 18:50:38 +00:00
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:
parent
02259cada8
commit
ec3e830817
4 changed files with 56 additions and 20 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue