Create a default content view for new tab view items.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32162 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Wolfgang Lux 2011-02-14 21:51:08 +00:00
parent 89d6cc016c
commit b07303eb41
2 changed files with 12 additions and 0 deletions

View file

@ -36,6 +36,11 @@
@implementation NSTabViewItem
- (id) init
{
return [self initWithIdentifier: @""];
}
- (id) initWithIdentifier: (id)identifier
{
self = [super init];
@ -44,6 +49,7 @@
{
ASSIGN(_ident, identifier);
_state = NSBackgroundTab;
_view = [NSView new];
// Use the window background colour as default, not the control background colour.
[self setColor: [NSColor windowBackgroundColor]];
}