mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 20:20:38 +00:00
* Model/GMAppKit.m [-encodeWithModelArchiver:] remove title
bar and resize bar from 'minSize'. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20228 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c049df4ca6
commit
c3bfeaf02f
2 changed files with 13 additions and 2 deletions
|
@ -1224,14 +1224,20 @@ void __dummy_GMAppKit_functionForLinking() {}
|
|||
- (void)encodeWithModelArchiver:(GMArchiver*)archiver
|
||||
{
|
||||
NSPoint wnOrigin = [self frame].origin;
|
||||
NSRect ctFrame = [[self contentView] frame];
|
||||
NSRect ctFrame = [[self contentView] frame], minRect;
|
||||
unsigned int style;
|
||||
|
||||
ctFrame.origin = wnOrigin;
|
||||
|
||||
/* convert minSize to GNUstep frame (without title bar and resize bar) */
|
||||
minRect.origin = wnOrigin;
|
||||
minRect.size = [self minSize];
|
||||
minRect = [NSWindow contentRectForFrameRect:minRect
|
||||
styleMask:[self styleMask]];
|
||||
|
||||
[archiver encodeRect:ctFrame withName:@"contentFrame"];
|
||||
[archiver encodeSize:[self maxSize] withName:@"maxSize"];
|
||||
[archiver encodeSize:[self minSize] withName:@"minSize"];
|
||||
[archiver encodeSize:minRect.size withName:@"minSize"];
|
||||
[archiver encodeString:[self frameAutosaveName]
|
||||
withName:@"frameAutosaveName"];
|
||||
[archiver encodeInt:[self level] withName:@"level"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue