Remove NSImage hack, other fixes.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12763 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fedor 2002-02-25 17:39:11 +00:00
parent 99c388514e
commit a324ac0bdf
5 changed files with 34 additions and 21 deletions

View file

@ -337,6 +337,11 @@ static NSColor *scrollBarColor = nil;
- (void) setFloatValue: (float)aFloat
{
if (_floatValue == aFloat)
{
/* Most likely our trackKnob method initiated this via NSScrollView */
return;
}
if (aFloat < 0)
{
_floatValue = 0;
@ -355,6 +360,11 @@ static NSColor *scrollBarColor = nil;
- (void) setFloatValue: (float)aFloat knobProportion: (float)ratio
{
if (_floatValue == aFloat && _knobProportion == ratio)
{
/* Most likely our trackKnob method initiated this via NSScrollView */
return;
}
if (ratio < 0)
{
_knobProportion = 0;