mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 12:40:47 +00:00
Merge additional code to fix tab drawing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@38659 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3d60883d2a
commit
060fca2f50
4 changed files with 164 additions and 86 deletions
|
@ -40,6 +40,7 @@
|
|||
#import "NSToolbarFrameworkPrivate.h"
|
||||
#import "GSGuiPrivate.h"
|
||||
|
||||
|
||||
@interface NSWindow (Private)
|
||||
- (GSWindowDecorationView *) windowView;
|
||||
- (void) _setMenu: (NSMenu *)menu;
|
||||
|
@ -105,17 +106,17 @@
|
|||
preferredEdge: (NSRectEdge)edge
|
||||
selectedItem: (int)selectedItem
|
||||
{
|
||||
BOOL pe = [[GSTheme theme] doesProcessEventsForPopUpMenu];
|
||||
|
||||
/* Ensure the window responds when run in modal and should
|
||||
* process events. Or revert this if theme has changed.
|
||||
*/
|
||||
if ([[GSTheme theme] doesProcessEventsForPopUpMenu] &&
|
||||
![[mr window] worksWhenModal])
|
||||
if (pe && ![[mr window] worksWhenModal])
|
||||
{
|
||||
[(NSPanel *)[mr window] setWorksWhenModal: YES];
|
||||
}
|
||||
|
||||
if (![[GSTheme theme] doesProcessEventsForPopUpMenu] &&
|
||||
[[mr window] worksWhenModal])
|
||||
if (!pe && [[mr window] worksWhenModal])
|
||||
{
|
||||
[(NSPanel *)[mr window] setWorksWhenModal: NO];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue