mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 18:50:48 +00:00
Fixed NSTabView more. Yeah.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7878 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c95e77dadb
commit
9bfe01ab61
3 changed files with 11 additions and 12 deletions
|
@ -7,6 +7,7 @@
|
||||||
2000-10-19 Michael Hanni <mhanni@sprintmail.com>
|
2000-10-19 Michael Hanni <mhanni@sprintmail.com>
|
||||||
|
|
||||||
* Source/NSTabView.m: a few bugfixes.
|
* Source/NSTabView.m: a few bugfixes.
|
||||||
|
* Source/NSTabViewItem.m: fixed a few memory leaks.
|
||||||
|
|
||||||
2000-10-17 Fred Kiefer <FredKiefer@gmx.de>
|
2000-10-17 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
|
|
|
@ -111,6 +111,7 @@
|
||||||
if ([[anItem identifier] isEqual: identifier])
|
if ([[anItem identifier] isEqual: identifier])
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
return NSNotFound;
|
return NSNotFound;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -185,10 +186,10 @@
|
||||||
tab_selected_item = [tab_items indexOfObject: tab_selected];
|
tab_selected_item = [tab_items indexOfObject: tab_selected];
|
||||||
[tab_selected _setTabState: NSSelectedTab];
|
[tab_selected _setTabState: NSSelectedTab];
|
||||||
|
|
||||||
// [self setNeedsDisplay: YES];
|
|
||||||
|
|
||||||
if ([tab_selected view])
|
if ([tab_selected view])
|
||||||
[self addSubview: [tab_selected view]];
|
{
|
||||||
|
[self addSubview: [tab_selected view]];
|
||||||
|
}
|
||||||
|
|
||||||
[self setNeedsDisplay: YES];
|
[self setNeedsDisplay: YES];
|
||||||
|
|
||||||
|
@ -291,9 +292,6 @@
|
||||||
{
|
{
|
||||||
NSRect cRect = _bounds;
|
NSRect cRect = _bounds;
|
||||||
|
|
||||||
// cRect.origin.x = 0;
|
|
||||||
// cRect.origin.y = 0;
|
|
||||||
|
|
||||||
if (tab_type == NSTopTabsBezelBorder)
|
if (tab_type == NSTopTabsBezelBorder)
|
||||||
{
|
{
|
||||||
cRect.origin.y += 1;
|
cRect.origin.y += 1;
|
||||||
|
@ -336,8 +334,9 @@
|
||||||
switch (tab_type)
|
switch (tab_type)
|
||||||
{
|
{
|
||||||
case NSTopTabsBezelBorder:
|
case NSTopTabsBezelBorder:
|
||||||
|
aRect.size.height -= 16;
|
||||||
rect.size.height -= 16;
|
rect.size.height -= 16;
|
||||||
NSDrawButton(rect, NSZeroRect);
|
NSDrawButton(aRect, NSZeroRect);
|
||||||
borderThickness = 2;
|
borderThickness = 2;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -657,10 +656,6 @@
|
||||||
[self selectTabViewItem: anItem];
|
[self selectTabViewItem: anItem];
|
||||||
}
|
}
|
||||||
|
|
||||||
// [self setNeedsDisplay: YES];
|
|
||||||
|
|
||||||
// [_window update];
|
|
||||||
|
|
||||||
return [super hitTest: aPoint];
|
return [super hitTest: aPoint];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -60,6 +60,9 @@
|
||||||
|
|
||||||
- (void)setView:(NSView *)view
|
- (void)setView:(NSView *)view
|
||||||
{
|
{
|
||||||
|
if (item_view)
|
||||||
|
RELEASE(item_view);
|
||||||
|
|
||||||
ASSIGN(item_view, view);
|
ASSIGN(item_view, view);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -96,7 +99,7 @@
|
||||||
|
|
||||||
- (void)_setTabView:(NSTabView *)tabView
|
- (void)_setTabView:(NSTabView *)tabView
|
||||||
{
|
{
|
||||||
ASSIGN(item_tabview, tabView);
|
item_tabview = tabView;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSTabView *)tabView
|
- (NSTabView *)tabView
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue