mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
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:
parent
ab919f8fba
commit
74eeac62d6
2 changed files with 10 additions and 0 deletions
|
@ -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:
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue