mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 13:20:38 +00:00
* NSMenuItem.h ADDITIONAL_WIDTH increase defined size (fix overlap in Edit)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3169 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
bcea1183c8
commit
59daf30d58
4 changed files with 40 additions and 29 deletions
|
@ -121,13 +121,17 @@ static BOOL _needsFlushWindows = YES;
|
|||
//
|
||||
- init
|
||||
{
|
||||
int style;
|
||||
int style;
|
||||
|
||||
NSDebugLog(@"NSWindow -init\n");
|
||||
style = NSTitledWindowMask | NSClosableWindowMask
|
||||
| NSMiniaturizableWindowMask | NSResizableWindowMask;
|
||||
return [self initWithContentRect:NSZeroRect styleMask:style
|
||||
backing:NSBackingStoreBuffered defer:NO];
|
||||
NSDebugLog(@"NSWindow -init\n");
|
||||
|
||||
style = NSTitledWindowMask | NSClosableWindowMask
|
||||
| NSMiniaturizableWindowMask | NSResizableWindowMask;
|
||||
|
||||
return [self initWithContentRect:NSZeroRect
|
||||
styleMask:style
|
||||
backing:NSBackingStoreBuffered
|
||||
defer:NO];
|
||||
}
|
||||
|
||||
- (void)dealloc
|
||||
|
@ -153,20 +157,24 @@ static BOOL _needsFlushWindows = YES;
|
|||
// Initializing and getting a new NSWindow object
|
||||
//
|
||||
- initWithContentRect:(NSRect)contentRect
|
||||
styleMask:(unsigned int)aStyle
|
||||
backing:(NSBackingStoreType)bufferingType
|
||||
defer:(BOOL)flag
|
||||
styleMask:(unsigned int)aStyle
|
||||
backing:(NSBackingStoreType)bufferingType
|
||||
defer:(BOOL)flag
|
||||
{
|
||||
NSDebugLog(@"NSWindow -initWithContentRect:\n");
|
||||
return [self initWithContentRect:contentRect styleMask:aStyle
|
||||
backing:bufferingType defer:flag screen:nil];
|
||||
NSDebugLog(@"NSWindow -initWithContentRect:\n");
|
||||
|
||||
return [self initWithContentRect:contentRect
|
||||
styleMask:aStyle
|
||||
backing:bufferingType
|
||||
defer:flag
|
||||
screen:nil];
|
||||
}
|
||||
|
||||
- initWithContentRect:(NSRect)contentRect
|
||||
styleMask:(unsigned int)aStyle
|
||||
backing:(NSBackingStoreType)bufferingType
|
||||
defer:(BOOL)flag
|
||||
screen:aScreen
|
||||
styleMask:(unsigned int)aStyle
|
||||
backing:(NSBackingStoreType)bufferingType
|
||||
defer:(BOOL)flag
|
||||
screen:aScreen
|
||||
{
|
||||
NSApplication *theApp = [NSApplication sharedApplication];
|
||||
NSRect r = [[NSScreen mainScreen] frame];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue