mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-03 10:20:52 +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
3009711bf0
commit
703f72ff3c
2 changed files with 10 additions and 0 deletions
|
@ -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>
|
2013-10-06 Eric Wasylishen <ewasylishen@gmail.com>
|
||||||
|
|
||||||
* Documentation/GuiUser/DefaultsSummary.gsdoc:
|
* Documentation/GuiUser/DefaultsSummary.gsdoc:
|
||||||
|
|
|
@ -189,6 +189,7 @@
|
||||||
|
|
||||||
RELEASE(textAttributes);
|
RELEASE(textAttributes);
|
||||||
RELEASE(titleColor);
|
RELEASE(titleColor);
|
||||||
|
[[GSTheme theme] setName: nil forElement: [closeButton cell] temporary: NO];
|
||||||
TEST_RELEASE(closeButton);
|
TEST_RELEASE(closeButton);
|
||||||
TEST_RELEASE(miniaturizeButton);
|
TEST_RELEASE(miniaturizeButton);
|
||||||
|
|
||||||
|
@ -390,12 +391,14 @@
|
||||||
NSSize viewSize;
|
NSSize viewSize;
|
||||||
NSSize buttonSize;
|
NSSize buttonSize;
|
||||||
|
|
||||||
|
[[GSTheme theme] setName: nil forElement: [closeButton cell] temporary: NO];
|
||||||
ASSIGN(closeButton,
|
ASSIGN(closeButton,
|
||||||
[NSWindow standardWindowButton:
|
[NSWindow standardWindowButton:
|
||||||
NSWindowCloseButton
|
NSWindowCloseButton
|
||||||
forStyleMask:
|
forStyleMask:
|
||||||
NSTitledWindowMask | NSClosableWindowMask
|
NSTitledWindowMask | NSClosableWindowMask
|
||||||
| NSMiniaturizableWindowMask]);
|
| NSMiniaturizableWindowMask]);
|
||||||
|
[[GSTheme theme] setName: @"GSMenuCloseButton" forElement: [closeButton cell] temporary: NO];
|
||||||
|
|
||||||
[closeButton setTarget: _owner];
|
[closeButton setTarget: _owner];
|
||||||
[closeButton setAction: closeAction];
|
[closeButton setAction: closeAction];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue