mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 02:20:49 +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
|
@ -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>
|
2004-10-15 07:33 Matt Rice <ratmice@yahoo.com>
|
||||||
|
|
||||||
* Source/NSApplication.m ([NSAppIconView -mouseDown:]): order front
|
* Source/NSApplication.m ([NSAppIconView -mouseDown:]): order front
|
||||||
|
|
|
@ -1224,14 +1224,20 @@ void __dummy_GMAppKit_functionForLinking() {}
|
||||||
- (void)encodeWithModelArchiver:(GMArchiver*)archiver
|
- (void)encodeWithModelArchiver:(GMArchiver*)archiver
|
||||||
{
|
{
|
||||||
NSPoint wnOrigin = [self frame].origin;
|
NSPoint wnOrigin = [self frame].origin;
|
||||||
NSRect ctFrame = [[self contentView] frame];
|
NSRect ctFrame = [[self contentView] frame], minRect;
|
||||||
unsigned int style;
|
unsigned int style;
|
||||||
|
|
||||||
ctFrame.origin = wnOrigin;
|
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 encodeRect:ctFrame withName:@"contentFrame"];
|
||||||
[archiver encodeSize:[self maxSize] withName:@"maxSize"];
|
[archiver encodeSize:[self maxSize] withName:@"maxSize"];
|
||||||
[archiver encodeSize:[self minSize] withName:@"minSize"];
|
[archiver encodeSize:minRect.size withName:@"minSize"];
|
||||||
[archiver encodeString:[self frameAutosaveName]
|
[archiver encodeString:[self frameAutosaveName]
|
||||||
withName:@"frameAutosaveName"];
|
withName:@"frameAutosaveName"];
|
||||||
[archiver encodeInt:[self level] withName:@"level"];
|
[archiver encodeInt:[self level] withName:@"level"];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue