* Headers/Additions/GNUstepGUI/GSTheme.h: Added method

rightMouseMenu:forEvent: to allow theming of transient and
	context menus.
	* Source/GSThemeMenu.m: Implementation of method 
	rightMouseMenu:forEvent: to allow theming of transient and
	context menus.
	* Source/NSMenu.m: use the theming code implemented above instead
	of rendering the menu directly.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30370 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2010-05-12 22:47:10 +00:00
parent fb7e725344
commit 562f545bd3
4 changed files with 32 additions and 6 deletions

View file

@ -1055,6 +1055,12 @@ withRepeatedImage: (NSImage*)image
*/
- (void) setMenu: (NSMenu *)menu forWindow: (NSWindow *)window;
/**
* Display the context menu when the right mouse button is pressed.
*/
- (void) rightMouseDisplay: (NSMenu *)menu
forEvent: (NSEvent *)theEvent;
/**
* Processes menu events for the theme. The default implementation
* does nothing.