* 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:
Adam Fedor 2004-10-16 03:16:09 +00:00
parent ff9620f5f4
commit 625f41d0fd
2 changed files with 13 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2004-10-11 Georg Fleischmann
* Model/GMAppKit.m [-encodeWithModelArchiver:] remove title
bar and resize bar from 'minSize'.
2004-10-15 07:33 Matt Rice <ratmice@yahoo.com>
* Source/NSApplication.m ([NSAppIconView -mouseDown:]): order front

View file

@ -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"];