* Source/NSColorPanel.m (-_initWithoutGModel): Correct target for

bottom wells.
	* Source/NSColorWell.m (-performClick:): Add this method and use
	it in -mouseUp:.
	Patch by Josh Freeman <pikopixel@twilightedge.com>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40228 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2016-11-21 20:54:13 +00:00
parent a944200159
commit 0772d452fb
3 changed files with 22 additions and 9 deletions

View file

@ -366,14 +366,7 @@ static NSString *GSColorWellDidBecomeExclusiveNotification =
if (inside)
{
if (_is_active == NO)
{
[self activate: YES];
}
else
{
[self deactivate];
}
[self performClick: self];
}
}
@ -382,6 +375,18 @@ static NSString *GSColorWellDidBecomeExclusiveNotification =
return [self color];
}
- (void) performClick: (id)sender
{
if ([self isActive])
{
[self deactivate];
}
else
{
[self activate: YES];
}
}
- (BOOL) performDragOperation: (id <NSDraggingInfo>)sender
{
NSPasteboard *pb = [sender draggingPasteboard];