mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 22:20:44 +00:00
* Palettes/1Windows/GormNSPanel.m
* Palettes/1Windows/GormNSWindow.m: Cleanup and fix for release when closed on panel. * Palettes/2Controls/ControlsPalette.gorm: Minor adjustment git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@26485 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
cea1fcb28d
commit
607d01c9ee
5 changed files with 24 additions and 12 deletions
|
@ -1,3 +1,10 @@
|
|||
2008-05-03 13:40-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Palettes/1Windows/GormNSPanel.m
|
||||
* Palettes/1Windows/GormNSWindow.m: Cleanup and fix for
|
||||
release when closed on panel.
|
||||
* Palettes/2Controls/ControlsPalette.gorm: Minor adjustment
|
||||
|
||||
2008-04-28 19:06-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* English.lproj/GormPalettePanel.gorm
|
||||
|
|
|
@ -4,8 +4,7 @@
|
|||
|
||||
Author: Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
Date: 2003
|
||||
Adapted from GormNSWindow.m
|
||||
|
||||
(Adapted from GormNSWindow.m)
|
||||
This file is part of GNUstep.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
|
@ -28,6 +27,7 @@
|
|||
#include <InterfaceBuilder/InterfaceBuilder.h>
|
||||
#include "GormNSPanel.h"
|
||||
|
||||
// the default style mask we start with.
|
||||
static unsigned int defaultStyleMask = NSTitledWindowMask | NSClosableWindowMask
|
||||
| NSResizableWindowMask | NSMiniaturizableWindowMask;
|
||||
|
||||
|
@ -47,6 +47,21 @@ static unsigned int defaultStyleMask = NSTitledWindowMask | NSClosableWindowMask
|
|||
[self setReleasedWhenClosed: NO];
|
||||
}
|
||||
|
||||
- (id) initWithCoder: (NSCoder *)coder
|
||||
{
|
||||
self = [super initWithCoder: coder];
|
||||
if (self == nil)
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
// preserve the setting and set the actual window to NO.
|
||||
_gormReleasedWhenClosed = [self isReleasedWhenClosed];
|
||||
[self setReleasedWhenClosed: NO];
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (id) initWithContentRect: (NSRect)contentRect
|
||||
styleMask: (unsigned int)aStyle
|
||||
backing: (NSBackingStoreType)bufferingType
|
||||
|
|
|
@ -69,7 +69,6 @@ static unsigned int defaultStyleMask = NSTitledWindowMask | NSClosableWindowMask
|
|||
screen: (NSScreen*)aScreen
|
||||
{
|
||||
_gormStyleMask = aStyle;
|
||||
// _originalContentRect = contentRect;
|
||||
self = [super initWithContentRect: contentRect
|
||||
styleMask: defaultStyleMask
|
||||
backing: bufferingType
|
||||
|
@ -159,13 +158,4 @@ static unsigned int defaultStyleMask = NSTitledWindowMask | NSClosableWindowMask
|
|||
{
|
||||
// do nothing...
|
||||
}
|
||||
|
||||
/*
|
||||
- (void) release
|
||||
{
|
||||
NSLog(@"Someone is releasing %@",self);
|
||||
[super release];
|
||||
}
|
||||
*/
|
||||
|
||||
@end
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue