mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 22:21:00 +00:00
Popup menu display broken on linux
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@36865 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d8aa0014eb
commit
3b710d1c37
1 changed files with 2 additions and 6 deletions
|
@ -1546,10 +1546,7 @@ static BOOL menuBarVisible = YES;
|
||||||
withEvent: (NSEvent*)event
|
withEvent: (NSEvent*)event
|
||||||
forView: (NSView*)view
|
forView: (NSView*)view
|
||||||
{
|
{
|
||||||
[self popUpContextMenu: menu
|
[self popUpContextMenu:menu withEvent:event forView:view withFont:nil];
|
||||||
withEvent: event
|
|
||||||
forView: view
|
|
||||||
withFont: nil];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (void) popUpContextMenu: (NSMenu *)menu
|
+ (void) popUpContextMenu: (NSMenu *)menu
|
||||||
|
@ -1557,8 +1554,7 @@ static BOOL menuBarVisible = YES;
|
||||||
forView: (NSView *)view
|
forView: (NSView *)view
|
||||||
withFont: (NSFont *)font
|
withFont: (NSFont *)font
|
||||||
{
|
{
|
||||||
|
NSWindow *window = [event window];
|
||||||
NSWindow *window = [view window];
|
|
||||||
NSPoint point = [window convertBaseToScreen: [event locationInWindow]];
|
NSPoint point = [window convertBaseToScreen: [event locationInWindow]];
|
||||||
NSRect cellFrame = NSMakeRect(point.x, point.y, 0, 0);
|
NSRect cellFrame = NSMakeRect(point.x, point.y, 0, 0);
|
||||||
[[GSTheme theme] displayPopUpMenu: [menu menuRepresentation]
|
[[GSTheme theme] displayPopUpMenu: [menu menuRepresentation]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue