mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 04:50:37 +00:00
Move code of previous commit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36906 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
bb09eb6bca
commit
7eb3256964
3 changed files with 23 additions and 16 deletions
|
@ -36,7 +36,6 @@
|
|||
#import "AppKit/NSKeyValueBinding.h"
|
||||
#import "AppKit/NSMenu.h"
|
||||
#import "AppKit/NSMenuView.h"
|
||||
#import "AppKit/NSPanel.h"
|
||||
#import "AppKit/NSPopUpButton.h"
|
||||
#import "AppKit/NSPopUpButtonCell.h"
|
||||
#import "AppKit/NSWindow.h"
|
||||
|
@ -910,21 +909,6 @@ static NSImage *_pbc_image[5];
|
|||
[nc postNotificationName: NSPopUpButtonWillPopUpNotification
|
||||
object: controlView];
|
||||
|
||||
/* Ensure the window responds when run in modal and should
|
||||
* process events. Or revert this if theme has changed.
|
||||
*/
|
||||
if ([[GSTheme theme] doesProcessEventsForPopUpMenu] &&
|
||||
![[_menu window] worksWhenModal])
|
||||
{
|
||||
[(NSPanel *)[_menu window] setWorksWhenModal: YES];
|
||||
}
|
||||
|
||||
if (![[GSTheme theme] doesProcessEventsForPopUpMenu] &&
|
||||
[[_menu window] worksWhenModal])
|
||||
{
|
||||
[(NSPanel *)[_menu window] setWorksWhenModal: NO];
|
||||
}
|
||||
|
||||
// Convert to Screen Coordinates
|
||||
cellFrame = [controlView convertRect: cellFrame toView: nil];
|
||||
cellFrame.origin = [cvWin convertBaseToScreen: cellFrame.origin];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue