mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 13:20:59 +00:00
In [rightMouseDown:] use [popUpContextMenu:withEvent:forView:].
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16210 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e41771c163
commit
fbf53689a5
1 changed files with 3 additions and 1 deletions
|
@ -1982,7 +1982,9 @@ image.
|
||||||
{
|
{
|
||||||
// On right mouse down display the main menu transient
|
// On right mouse down display the main menu transient
|
||||||
if (_main_menu != nil)
|
if (_main_menu != nil)
|
||||||
[_main_menu _rightMouseDisplay: theEvent];
|
[NSMenu popUpContextMenu: _main_menu
|
||||||
|
withEvent: theEvent
|
||||||
|
forView: nil];
|
||||||
else
|
else
|
||||||
[super rightMouseDown: theEvent];
|
[super rightMouseDown: theEvent];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue