Small cleanup.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26429 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2008-04-04 21:52:39 +00:00
parent bf24bb916e
commit ebe86a3327
2 changed files with 323 additions and 308 deletions

View file

@ -1,3 +1,8 @@
2008-04-04 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSScrollView.m: Correct indentation. Small cleanups.
* Source/NSScrollView.m (-setDrawsBackground:): Set setCopiesOnScroll:.
2008-04-02 Nicola Pero <nicola.pero@meta-innovation.com>
* Source/NSSplitView.m ([-adjustSubviews]): Fixed the slow drift

View file

@ -171,11 +171,16 @@ static float scrollerWidth;
*/
- (id) initWithFrame: (NSRect)rect
{
NSClipView *clipView = [NSClipView new];
NSClipView *clipView;
self = [super initWithFrame: rect];
if (!self)
return nil;
clipView = [NSClipView new];
[self setContentView: clipView];
RELEASE(clipView);
_hLineScroll = 10;
_hPageScroll = 10;
_vLineScroll = 10;
@ -1175,6 +1180,9 @@ static float scrollerWidth;
- (void) setDrawsBackground: (BOOL)flag
{
[_contentView setDrawsBackground: flag];
if ((flag == NO) &&
[_contentView respondsToSelector: @selector(setCopiesOnScroll:)])
[_contentView setCopiesOnScroll: NO];
}
- (BOOL) drawsBackground
@ -1449,6 +1457,8 @@ static float scrollerWidth;
- (id) initWithCoder: (NSCoder*)aDecoder
{
self = [super initWithCoder: aDecoder];
if (!self)
return nil;
if ([aDecoder allowsKeyedCoding])
{