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

@ -1,3 +1,9 @@
2011-02-14 Wolfgang Lux <wolfgang.lux@gmail.com>
* Source/NSTabViewItem.m (-init, -initWithItemIdentifier:):
Create a default content view for new tab view items. Compatible
with Apple.
2011-02-14 Fred Kiefer <FredKiefer@gmx.de> 2011-02-14 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSOutlineView.m (-editColumn:...select:): Bring closer to * Source/NSOutlineView.m (-editColumn:...select:): Bring closer to

View file

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