mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 23:50:49 +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
a3a2c81175
commit
670001bae8
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>
|
2009-04-19 00:46-EDT Gregory John Casamento <greg.casamento@gmail.com>
|
||||||
|
|
||||||
* Headers/AppKit/NSSearchFieldCell.h: Give the values assigned in
|
* Headers/AppKit/NSSearchFieldCell.h: Give the values assigned in
|
||||||
|
|
|
@ -432,16 +432,23 @@ static NSString *GSColorWellDidBecomeExclusiveNotification =
|
||||||
|
|
||||||
if ([sender respondsToSelector: @selector(color)])
|
if ([sender respondsToSelector: @selector(color)])
|
||||||
{
|
{
|
||||||
|
NSColor *c = [(id)sender color];
|
||||||
|
|
||||||
/* Don't use -setColor: as that would send a message back to the
|
/* Don't use -setColor: as that would send a message back to the
|
||||||
* panel telling it to se its color again.
|
* panel telling it to se its color again.
|
||||||
* Instead we assign the color and mark for redisplay directly.
|
* 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]);
|
if (c != nil && [c isEqual: _the_color] == NO)
|
||||||
[self setNeedsDisplay: YES];
|
{
|
||||||
/* When our color is changed from the color panel, we should
|
ASSIGN(_the_color, [(id)sender color]);
|
||||||
* send our action.
|
[self setNeedsDisplay: YES];
|
||||||
*/
|
/* When our color is changed from the color panel, we should
|
||||||
[self sendAction: _action to: _target];
|
* send our action.
|
||||||
|
*/
|
||||||
|
[self sendAction: _action to: _target];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue