mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 00:50:59 +00:00
* Headers/Additions/GNUstepGUI/GSTheme.h: Added methods
to support adding menus and processing commands from windows, if appropriate. * Headers/Additions/GNUstepGUI/GSWindowDecorationView.h: Added new methods for menu and toolbar flags. * Headers/AppKit/NSInterfaceStyle.h: Added new interface style. * Source/GNUmakefile: Added header. * Source/GSStandardWindowDecorationView.m: Change include to include header in new location. * Source/GSThemeMenu.m: Default theme implementation for Menus. * Source/GSWindowDecorationView.m: Add the setHasMenu:/setHasToolbar: flags. * Source/NSWindow.m: Use the theme to set the menu instead of setting it directly. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29271 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5736f119e9
commit
dcea95cb77
9 changed files with 260 additions and 33 deletions
|
@ -983,5 +983,11 @@ withRepeatedImage: (NSImage*)image
|
|||
flipped: (BOOL)flipped;
|
||||
@end
|
||||
|
||||
@interface GSTheme (Menus)
|
||||
- (void) setMenu: (NSMenu *)menu
|
||||
forWindow: (NSWindow *)window;
|
||||
- (void) processCommand: (void *)context;
|
||||
@end
|
||||
|
||||
#endif /* OS_API_VERSION */
|
||||
#endif /* _GNUstep_H_GSTheme */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue