mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 14:50:38 +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
|
@ -24,7 +24,7 @@
|
|||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#include "GSWindowDecorationView.h"
|
||||
#include <GNUstepGUI/GSWindowDecorationView.h>
|
||||
|
||||
#include <Foundation/NSEnumerator.h>
|
||||
#include <Foundation/NSException.h>
|
||||
|
@ -119,6 +119,16 @@
|
|||
return self;
|
||||
}
|
||||
|
||||
- (void) setHasMenu: (BOOL) flag
|
||||
{
|
||||
hasMenu = flag;
|
||||
}
|
||||
|
||||
- (void) setHasToolbar: (BOOL) flag
|
||||
{
|
||||
hasToolbar = flag;
|
||||
}
|
||||
|
||||
- (NSRect) contentRectForFrameRect: (NSRect)aRect
|
||||
styleMask: (unsigned int)aStyle
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue