mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 21:27:40 +00:00
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:
parent
89d6cc016c
commit
b07303eb41
2 changed files with 12 additions and 0 deletions
|
@ -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]];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue