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:
wlux 2011-02-14 21:51:08 +00:00
parent 5f8786c804
commit b36428ca5d
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>
* Source/NSOutlineView.m (-editColumn:...select:): Bring closer to

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]];
}