mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
* Source/NSWindow.m (-initWithContentRect:...defer:): Call
setFrame:display: to ensure the minium and maximum size gets enforced. * Source/NSFont.m (-description): Add this method.
This commit is contained in:
parent
36ad37071c
commit
cad8383e62
3 changed files with 18 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2020-05-08 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSWindow.m (-initWithContentRect:...defer:): Call
|
||||
setFrame:display: to ensure the minium and maximum size gets enforced.
|
||||
* Source/NSFont.m (-description): Add this method.
|
||||
|
||||
2020-05-06 Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Headers/Additions/GNUstepGUI/GSTheme.h: Add declarations
|
||||
|
|
|
@ -80,6 +80,7 @@ globalFontMap.
|
|||
{
|
||||
return hash;
|
||||
}
|
||||
|
||||
-(BOOL) isEqual: (id)other
|
||||
{
|
||||
GSFontMapKey *o;
|
||||
|
@ -99,11 +100,21 @@ globalFontMap.
|
|||
return NO;
|
||||
return YES;
|
||||
}
|
||||
|
||||
-(void) dealloc
|
||||
{
|
||||
DESTROY(name);
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (NSString *) description
|
||||
{
|
||||
return [NSString stringWithFormat: @"%@ %d %d [%d %d %d %d %d %d]",
|
||||
name, screenFont, role,
|
||||
matrix[0], matrix[1], matrix[2],
|
||||
matrix[3], matrix[4], matrix[5]];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
static GSFontMapKey *
|
||||
|
|
|
@ -1064,6 +1064,7 @@ many times.
|
|||
_minimumSize = NSMakeSize(_frame.size.width - contentRect.size.width + 1,
|
||||
_frame.size.height - contentRect.size.height + 1);
|
||||
_maximumSize = NSMakeSize (10e4, 10e4);
|
||||
[self setFrame: _frame display: NO];
|
||||
|
||||
[self setNextResponder: NSApp];
|
||||
|
||||
|
|
Loading…
Reference in a new issue