[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
NSScroller ignores NSScrollerArrowsNone [patch]
From: |
Jeff Teunissen |
Subject: |
NSScroller ignores NSScrollerArrowsNone [patch] |
Date: |
Thu, 06 Jun 2002 04:28:19 -0400 |
Attached is a simple patch that allows NSScrollers to not have scroll
arrows, as per the specs.
--
| Jeff Teunissen -=- Pres., Dusk To Dawn Computing -=- deek @ d2dc.net
| GPG: 1024D/9840105A 7102 808A 7733 C2F3 097B 161B 9222 DAB8 9840 105A
| Core developer, The QuakeForge Project http://www.quakeforge.net/
| Specializing in Debian GNU/Linux http://www.d2dc.net/~deek/
Index: gui/Source/NSScroller.m
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/gui/Source/NSScroller.m,v
retrieving revision 1.59
diff -u -r1.59 NSScroller.m
--- gui/Source/NSScroller.m 11 Apr 2002 23:15:06 -0000 1.59
+++ gui/Source/NSScroller.m 6 Jun 2002 08:27:36 -0000
@@ -407,10 +407,11 @@
[super setFrame: frameRect];
- if (_isHorizontal)
- _arrowsPosition = NSScrollerArrowsMinEnd;
- else
- _arrowsPosition = NSScrollerArrowsMaxEnd;
+ if (_arrowsPosition != NSScrollerArrowsNone)
+ if (_isHorizontal)
+ _arrowsPosition = NSScrollerArrowsMinEnd;
+ else
+ _arrowsPosition = NSScrollerArrowsMaxEnd;
_hitPart = NSScrollerNoPart;
_cacheValid = NO;
- NSScroller ignores NSScrollerArrowsNone [patch],
Jeff Teunissen <=