mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-21 12:11:29 +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
be7fb430f7
commit
35bbbfdb6b
4 changed files with 40 additions and 29 deletions
|
@ -111,20 +111,19 @@ static NSString *nsview_thread_key = @"NSViewThreadKey";
|
|||
|
||||
+ (NSView *)focusView
|
||||
{
|
||||
NSMutableDictionary *dict = [[NSThread currentThread] threadDictionary];
|
||||
NSMutableArray *stack = [dict objectForKey: nsview_thread_key];
|
||||
NSView *current_view = nil;
|
||||
NSMutableDictionary *dict = [[NSThread currentThread] threadDictionary];
|
||||
NSMutableArray *stack = [dict objectForKey: nsview_thread_key];
|
||||
NSView *current_view = nil;
|
||||
|
||||
if (stack)
|
||||
{
|
||||
unsigned count = [stack count];
|
||||
if (stack)
|
||||
{
|
||||
unsigned count = [stack count];
|
||||
|
||||
if (count > 0)
|
||||
{
|
||||
current_view = [stack objectAtIndex: --count];
|
||||
}
|
||||
}
|
||||
return current_view;
|
||||
if (count > 0)
|
||||
current_view = [stack objectAtIndex: --count];
|
||||
}
|
||||
|
||||
return current_view;
|
||||
}
|
||||
|
||||
- init
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue