mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 13:20:59 +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
865193b4bf
commit
a99e46fa36
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>
|
2011-01-15 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||||
|
|
||||||
* Headers/AppKit/NSColorList.h:
|
* Headers/AppKit/NSColorList.h:
|
||||||
|
|
|
@ -101,6 +101,11 @@ static NSString *GSColorWellDidBecomeExclusiveNotification =
|
||||||
name: NSColorPanelColorDidChangeNotification
|
name: NSColorPanelColorDidChangeNotification
|
||||||
object: nil];
|
object: nil];
|
||||||
|
|
||||||
|
[nc addObserver: self
|
||||||
|
selector: @selector(deactivate)
|
||||||
|
name: NSWindowWillCloseNotification
|
||||||
|
object: colorPanel];
|
||||||
|
|
||||||
_is_active = YES;
|
_is_active = YES;
|
||||||
|
|
||||||
[colorPanel setColor: _the_color];
|
[colorPanel setColor: _the_color];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue