mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:20:38 +00:00
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:
parent
99c388514e
commit
a324ac0bdf
5 changed files with 34 additions and 21 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue