Made change to prevent the color well's use when disabled.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20631 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2005-01-29 02:54:50 +00:00
parent 79e9a091e7
commit 7700675c89
2 changed files with 26 additions and 14 deletions

View file

@ -1,3 +1,8 @@
2005-01-28 21:58 Gregory John Casamento <greg_casamento@yahoo.com>
* Source/NSColorWell.m: [NSColorWell mouseDown:] prevent use
of the colorwell when it's disabled.
2005-01-28 17:57 Alexander Malmberg <alexander@malmberg.org>
* Source/NSImageCell.m (-drawInteriorWithFrame:inView:): If our

View file

@ -276,6 +276,12 @@ static NSString *GSColorWellDidBecomeExclusiveNotification =
}
- (void) mouseDown: (NSEvent *)theEvent
{
//
// OPENSTEP 4.2 and OSX behavior indicates that the colorwell doesn't
// work when the widget is marked as disabled.
//
if([self isEnabled])
{
NSPoint point = [self convertPoint: [theEvent locationInWindow]
fromView: nil];
@ -295,6 +301,7 @@ static NSString *GSColorWellDidBecomeExclusiveNotification =
[self deactivate];
}
}
}
- (BOOL) performDragOperation: (id <NSDraggingInfo>)sender
{