mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-21 00:20:57 +00:00
* Source/GSTitleView.m: Use the GSTheme
-setName:forElement:temporary: mechanism to bind the menu close button's cell to the name GSMenuCloseButton, so themes can provide a custom border for this button. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37201 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e72fe86870
commit
d651b3154c
2 changed files with 10 additions and 0 deletions
|
@ -189,6 +189,7 @@
|
|||
|
||||
RELEASE(textAttributes);
|
||||
RELEASE(titleColor);
|
||||
[[GSTheme theme] setName: nil forElement: [closeButton cell] temporary: NO];
|
||||
TEST_RELEASE(closeButton);
|
||||
TEST_RELEASE(miniaturizeButton);
|
||||
|
||||
|
@ -390,12 +391,14 @@
|
|||
NSSize viewSize;
|
||||
NSSize buttonSize;
|
||||
|
||||
[[GSTheme theme] setName: nil forElement: [closeButton cell] temporary: NO];
|
||||
ASSIGN(closeButton,
|
||||
[NSWindow standardWindowButton:
|
||||
NSWindowCloseButton
|
||||
forStyleMask:
|
||||
NSTitledWindowMask | NSClosableWindowMask
|
||||
| NSMiniaturizableWindowMask]);
|
||||
[[GSTheme theme] setName: @"GSMenuCloseButton" forElement: [closeButton cell] temporary: NO];
|
||||
|
||||
[closeButton setTarget: _owner];
|
||||
[closeButton setAction: closeAction];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue