* Source/NSSlider.m (-keyDown:): Implement, Fixes bug #14000.

* Source/NSSliderCell.m (-trackMouse:...): Fix allows tick marks
        only mouse tracking.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24031 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Matt Rice 2006-11-05 19:22:00 +00:00
parent ef92c9d9b9
commit 49923f47c7
3 changed files with 100 additions and 0 deletions

View file

@ -700,6 +700,11 @@ float _floatValueForMousePoint (NSPoint point, NSRect knobRect,
self, isFlipped);
if (floatValue != oldFloatValue)
{
if (_allowsTickMarkValuesOnly)
{
floatValue = [self closestTickMarkValueToValue:floatValue];
}
[self setFloatValue: floatValue];
if (isContinuous)
{