Major rewrites of both classes so that they behave like they should

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11269 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Pierre-Yves Rivaille 2001-10-28 20:00:13 +00:00
parent 5011e9feee
commit c035933889
2 changed files with 6 additions and 26 deletions

View file

@ -178,6 +178,9 @@ id _nsstepperCellClass = nil;
BOOL isDirectionUp;
BOOL autorepeat = [_cell autorepeat];
if([_cell isEnabled] == NO)
return;
if([event type] != NSLeftMouseDown)
return;
@ -325,6 +328,7 @@ id _nsstepperCellClass = nil;
else
[_cell setDoubleValue: newValue];
}
[self sendAction: [self action] to: [self target]];
}
- (void)_decrement
@ -354,6 +358,7 @@ id _nsstepperCellClass = nil;
else
[_cell setDoubleValue: newValue];
}
[self sendAction: [self action] to: [self target]];
}
@end