Hand on background drawing to content view. In [setContentView:] call setDocumentView:

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8036 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2000-11-05 16:28:50 +00:00
parent 7915c61aa7
commit 21b856060f

View file

@ -207,10 +207,15 @@ static Class rulerViewClass = nil;
format: @"Attempt to set non-view object as content view"];
if (aView != _contentView)
{
NSView *docView = [aView documentView];
RETAIN(aView);
[_contentView removeFromSuperview];
_contentView = aView;
[self addSubview: _contentView];
if (docView != nil)
[self setDocumentView: docView];
}
[_contentView setAutoresizingMask: NSViewWidthSizable | NSViewHeightSizable];
[self tile];
@ -508,6 +513,8 @@ static Class rulerViewClass = nil;
- (void) setRulersVisible: (BOOL)flag
{
// FIX ME
_rulersVisible = flag;
}
- (void) setFrame: (NSRect)rect
@ -749,6 +756,16 @@ static Class rulerViewClass = nil;
return [_contentView backgroundColor];
}
- (void)setDrawsBackground:(BOOL)flag
{
[_contentView setDrawsBackground: flag];
}
- (BOOL)drawsBackground
{
return [_contentView drawsBackground];
}
- (void) setBorderType: (NSBorderType)borderType
{
_borderType = borderType;
@ -940,6 +957,7 @@ static Class rulerViewClass = nil;
- (void) setScrollsDynamically: (BOOL)flag
{
// FIX ME: This should change the behaviour of the scrollers
_scrollsDynamically = flag;
}