mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 18:50:48 +00:00
Changes to revmoe backend menu classes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5062 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
98d6247641
commit
0175fe3359
4 changed files with 54 additions and 2 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
1999-10-22 Adam Fedor <fedor@gnu.org>
|
||||||
|
|
||||||
|
* Source/NSWindow.m (-initWithContentRect:...): Remove window
|
||||||
|
from windows menu if window_level is > dock window.
|
||||||
|
|
||||||
|
* Source/NSMenu.m (NSMenuWindow): Implement class (from backend)
|
||||||
|
so backend class can be removed.
|
||||||
|
|
||||||
Sat Oct 23 1999 Nicola Pero <n.pero@mi.flashnet.it>
|
Sat Oct 23 1999 Nicola Pero <n.pero@mi.flashnet.it>
|
||||||
|
|
||||||
* Source/NSSavePanel.m Moved FileManager at the beginning of file,
|
* Source/NSSavePanel.m Moved FileManager at the beginning of file,
|
||||||
|
|
|
@ -1,4 +1,19 @@
|
||||||
gnustep-gui.info
|
|
||||||
gnustep-gui.texi
|
gnustep-gui.texi
|
||||||
version.texi
|
version.texi
|
||||||
version.tmpl.texi
|
version.tmpl.texi
|
||||||
|
*.log
|
||||||
|
*.dvi
|
||||||
|
*.ps
|
||||||
|
*.html
|
||||||
|
*.info
|
||||||
|
*.aux
|
||||||
|
*.toc
|
||||||
|
*.cp
|
||||||
|
*.fn
|
||||||
|
*.vr
|
||||||
|
*.tp
|
||||||
|
*.ky
|
||||||
|
*.pg
|
||||||
|
*.ps
|
||||||
|
*.vrs
|
||||||
|
|
||||||
|
|
|
@ -962,13 +962,38 @@ NSArray* array;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation NSMenuWindow
|
@implementation NSMenuWindow
|
||||||
|
|
||||||
+ (void) initialize
|
+ (void) initialize
|
||||||
{
|
{
|
||||||
if (self == [NSMenu class])
|
if (self == [NSMenuWindow class])
|
||||||
{
|
{
|
||||||
[self setVersion: 1];
|
[self setVersion: 1];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (BOOL) canBecomeMainWindow
|
||||||
|
{
|
||||||
|
return NO;
|
||||||
|
}
|
||||||
|
|
||||||
|
- (BOOL) canBecomeKeyWindow
|
||||||
|
{
|
||||||
|
return NO;
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void) initDefaults
|
||||||
|
{
|
||||||
|
[super initDefaults];
|
||||||
|
menu_exclude = YES; // Don't show in windows menu.
|
||||||
|
window_level = NSSubmenuWindowLevel;
|
||||||
|
is_released_when_closed = NO;
|
||||||
|
}
|
||||||
|
|
||||||
|
- (BOOL) worksWhenModal
|
||||||
|
{
|
||||||
|
return YES;
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@implementation NSMenuWindowTitleView
|
@implementation NSMenuWindowTitleView
|
||||||
|
|
|
@ -315,6 +315,10 @@ static NSMapTable* windowmaps = NULL;
|
||||||
DPSgrestore(context);
|
DPSgrestore(context);
|
||||||
|
|
||||||
NSMapInsert (windowmaps, (void*)window_num, self);
|
NSMapInsert (windowmaps, (void*)window_num, self);
|
||||||
|
/* I'm not sure we even need this if menu_exclude is set correctly */
|
||||||
|
if ([self level] >= NSDockWindowLevel)
|
||||||
|
[[NSApplication sharedApplication] removeWindowsItem: self];
|
||||||
|
|
||||||
NSDebugLog(@"NSWindow end of init\n");
|
NSDebugLog(@"NSWindow end of init\n");
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue