mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
fix for #26277
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28244 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
144289ad4e
commit
05a515f767
2 changed files with 18 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-04-24 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSColorWell.m: Only send action if color changes ... fix
|
||||
for bug #26277
|
||||
|
||||
2009-04-19 00:46-EDT Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Headers/AppKit/NSSearchFieldCell.h: Give the values assigned in
|
||||
|
|
|
@ -432,16 +432,23 @@ static NSString *GSColorWellDidBecomeExclusiveNotification =
|
|||
|
||||
if ([sender respondsToSelector: @selector(color)])
|
||||
{
|
||||
NSColor *c = [(id)sender color];
|
||||
|
||||
/* Don't use -setColor: as that would send a message back to the
|
||||
* panel telling it to se its color again.
|
||||
* Instead we assign the color and mark for redisplay directly.
|
||||
* NB. For MacOS-X compatibility, we only send the action if the
|
||||
* coor has actually changed.
|
||||
*/
|
||||
ASSIGN(_the_color, [(id)sender color]);
|
||||
[self setNeedsDisplay: YES];
|
||||
/* When our color is changed from the color panel, we should
|
||||
* send our action.
|
||||
*/
|
||||
[self sendAction: _action to: _target];
|
||||
if (c != nil && [c isEqual: _the_color] == NO)
|
||||
{
|
||||
ASSIGN(_the_color, [(id)sender color]);
|
||||
[self setNeedsDisplay: YES];
|
||||
/* When our color is changed from the color panel, we should
|
||||
* send our action.
|
||||
*/
|
||||
[self sendAction: _action to: _target];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue