mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 19:07:38 +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
1eca5a6de3
commit
2fe1ff8331
4 changed files with 54 additions and 2 deletions
|
@ -962,13 +962,38 @@ NSArray* array;
|
|||
@end
|
||||
|
||||
@implementation NSMenuWindow
|
||||
|
||||
+ (void) initialize
|
||||
{
|
||||
if (self == [NSMenu class])
|
||||
if (self == [NSMenuWindow class])
|
||||
{
|
||||
[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
|
||||
|
||||
@implementation NSMenuWindowTitleView
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue