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

declaration for updateAllWindowsWithMenu:
	* Source/GSThemeMenu.m: Added default implementation of 
	updateAllWindowsWithMenu:
	* Source/NSMenu.m: Added call to updateAllWindowsWithMenu: on
	current theme.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29445 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2010-01-30 03:11:56 +00:00
parent ffc734898c
commit a7b418e691
4 changed files with 45 additions and 0 deletions

View file

@ -1015,11 +1015,39 @@ withRepeatedImage: (NSImage*)image
@end
@interface GSTheme (Menus)
/**
* This method sets the menu for the window using the current theme
* In the default theme this calls the setMenu: method on the window
* giving the menu parameter as the argument.
*/
- (void) setMenu: (NSMenu *)menu forWindow: (NSWindow *)window;
/**
* Processes menu events for the theme. The default implementation
* does nothing.
*/
- (void) processCommand: (void *)context;
/**
* Calculate the height of the menu for in-window menus. The default
* implementation returns [NSMenuView menuBarHeight];
*/
- (float) menuHeightForWindow: (NSWindow *)window;
/**
* Update the menu for the window. This refreshes the menu contents.
* The default implementation of this method does nothing.
*/
- (void) updateMenu: (NSMenu *)menu forWindow: (NSWindow *)window;
- (void) updateAllWindowsWithMenu: (NSMenu *) menu;
@end
@interface GSTheme (OpenSavePanels)
/**
* This method displays and returns the open panel needed by the
* native environment.
*/
@end
#endif /* OS_API_VERSION */
#endif /* _GNUstep_H_GSTheme */