From 703f72ff3cc525ed07925c33e56f344f84cb8b91 Mon Sep 17 00:00:00 2001 From: ericwa Date: Mon, 7 Oct 2013 06:23:02 +0000 Subject: [PATCH] * 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 --- ChangeLog | 7 +++++++ Source/GSTitleView.m | 3 +++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6c21a8c37..0caad6e1e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2013-10-07 Eric Wasylishen + + * 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 * Documentation/GuiUser/DefaultsSummary.gsdoc: diff --git a/Source/GSTitleView.m b/Source/GSTitleView.m index cb859de56..54cc8b6ac 100644 --- a/Source/GSTitleView.m +++ b/Source/GSTitleView.m @@ -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];