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
This commit is contained in:
Wolfgang Lux 2011-01-15 22:39:58 +00:00
parent ab919f8fba
commit 74eeac62d6
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2011-01-15 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSColorWell.m (-activate:): Deactivate an activate color
well when the user closes the color panel.
2011-01-15 Wolfgang Lux <wolfgang.lux@gmail.com>
* Headers/AppKit/NSColorList.h:

View file

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