From a99e46fa36e73aea9e65090ffad7c0cd8b8b88d2 Mon Sep 17 00:00:00 2001 From: wlux Date: Sat, 15 Jan 2011 22:39:58 +0000 Subject: [PATCH] Deactivate an activate color well when the user closes the color panel. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31894 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ Source/NSColorWell.m | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index ab4a44990..f885b6554 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-01-15 Wolfgang Lux + + * Source/NSColorWell.m (-activate:): Deactivate an activate color + well when the user closes the color panel. + 2011-01-15 Wolfgang Lux * Headers/AppKit/NSColorList.h: diff --git a/Source/NSColorWell.m b/Source/NSColorWell.m index 9237d9f07..9f86feb01 100644 --- a/Source/NSColorWell.m +++ b/Source/NSColorWell.m @@ -101,6 +101,11 @@ static NSString *GSColorWellDidBecomeExclusiveNotification = name: NSColorPanelColorDidChangeNotification object: nil]; + [nc addObserver: self + selector: @selector(deactivate) + name: NSWindowWillCloseNotification + object: colorPanel]; + _is_active = YES; [colorPanel setColor: _the_color];