mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 23:50:37 +00:00
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:
parent
5011e9feee
commit
c035933889
2 changed files with 6 additions and 26 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue