* 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:
Eric Wasylishen 2013-10-07 06:23:02 +00:00
parent e72fe86870
commit d651b3154c
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2013-10-07 Eric Wasylishen <ewasylishen@gmail.com>
* 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.
2013-10-06 Eric Wasylishen <ewasylishen@gmail.com>
* Documentation/GuiUser/DefaultsSummary.gsdoc:

View file

@ -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];