mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 07:10:59 +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
|
@ -1,3 +1,7 @@
|
||||||
|
Tue Nov 3 1998 Felipe A. Rodriguez <far@ix.netcom.com>
|
||||||
|
|
||||||
|
* NSMenuItem.h ADDITIONAL_WIDTH increase defined size (fix overlap in Edit)
|
||||||
|
|
||||||
Mon Nov 2 1998 Felipe A. Rodriguez <far@ix.netcom.com>
|
Mon Nov 2 1998 Felipe A. Rodriguez <far@ix.netcom.com>
|
||||||
|
|
||||||
* NSApplication.m optimize event translation, matching and dispatch. Add
|
* NSApplication.m optimize event translation, matching and dispatch. Add
|
||||||
|
|
|
@ -93,7 +93,7 @@
|
||||||
enum {
|
enum {
|
||||||
INTERCELL_SPACE = 1,
|
INTERCELL_SPACE = 1,
|
||||||
RIGHT_IMAGE_WIDTH = 12,
|
RIGHT_IMAGE_WIDTH = 12,
|
||||||
ADDITIONAL_WIDTH = RIGHT_IMAGE_WIDTH + 6
|
ADDITIONAL_WIDTH = RIGHT_IMAGE_WIDTH + 15
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _GNUstep_H_NSMenuItem
|
#endif // _GNUstep_H_NSMenuItem
|
||||||
|
|
|
@ -111,19 +111,18 @@ static NSString *nsview_thread_key = @"NSViewThreadKey";
|
||||||
|
|
||||||
+ (NSView *)focusView
|
+ (NSView *)focusView
|
||||||
{
|
{
|
||||||
NSMutableDictionary *dict = [[NSThread currentThread] threadDictionary];
|
NSMutableDictionary *dict = [[NSThread currentThread] threadDictionary];
|
||||||
NSMutableArray *stack = [dict objectForKey: nsview_thread_key];
|
NSMutableArray *stack = [dict objectForKey: nsview_thread_key];
|
||||||
NSView *current_view = nil;
|
NSView *current_view = nil;
|
||||||
|
|
||||||
if (stack)
|
if (stack)
|
||||||
{
|
{
|
||||||
unsigned count = [stack count];
|
unsigned count = [stack count];
|
||||||
|
|
||||||
if (count > 0)
|
if (count > 0)
|
||||||
{
|
|
||||||
current_view = [stack objectAtIndex: --count];
|
current_view = [stack objectAtIndex: --count];
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return current_view;
|
return current_view;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -121,13 +121,17 @@ static BOOL _needsFlushWindows = YES;
|
||||||
//
|
//
|
||||||
- init
|
- init
|
||||||
{
|
{
|
||||||
int style;
|
int style;
|
||||||
|
|
||||||
NSDebugLog(@"NSWindow -init\n");
|
NSDebugLog(@"NSWindow -init\n");
|
||||||
|
|
||||||
style = NSTitledWindowMask | NSClosableWindowMask
|
style = NSTitledWindowMask | NSClosableWindowMask
|
||||||
| NSMiniaturizableWindowMask | NSResizableWindowMask;
|
| NSMiniaturizableWindowMask | NSResizableWindowMask;
|
||||||
return [self initWithContentRect:NSZeroRect styleMask:style
|
|
||||||
backing:NSBackingStoreBuffered defer:NO];
|
return [self initWithContentRect:NSZeroRect
|
||||||
|
styleMask:style
|
||||||
|
backing:NSBackingStoreBuffered
|
||||||
|
defer:NO];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)dealloc
|
- (void)dealloc
|
||||||
|
@ -158,8 +162,12 @@ static BOOL _needsFlushWindows = YES;
|
||||||
defer:(BOOL)flag
|
defer:(BOOL)flag
|
||||||
{
|
{
|
||||||
NSDebugLog(@"NSWindow -initWithContentRect:\n");
|
NSDebugLog(@"NSWindow -initWithContentRect:\n");
|
||||||
return [self initWithContentRect:contentRect styleMask:aStyle
|
|
||||||
backing:bufferingType defer:flag screen:nil];
|
return [self initWithContentRect:contentRect
|
||||||
|
styleMask:aStyle
|
||||||
|
backing:bufferingType
|
||||||
|
defer:flag
|
||||||
|
screen:nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
- initWithContentRect:(NSRect)contentRect
|
- initWithContentRect:(NSRect)contentRect
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue