mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 14:30:38 +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
5f8786c804
commit
b36428ca5d
2 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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