mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 03:21:04 +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
1ee0716c90
commit
43f024d2d7
3 changed files with 11 additions and 12 deletions
|
@ -7,6 +7,7 @@
|
|||
2000-10-19 Michael Hanni <mhanni@sprintmail.com>
|
||||
|
||||
* Source/NSTabView.m: a few bugfixes.
|
||||
* Source/NSTabViewItem.m: fixed a few memory leaks.
|
||||
|
||||
2000-10-17 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
|
|
|
@ -111,6 +111,7 @@
|
|||
if ([[anItem identifier] isEqual: identifier])
|
||||
return i;
|
||||
}
|
||||
|
||||
return NSNotFound;
|
||||
}
|
||||
|
||||
|
@ -185,10 +186,10 @@
|
|||
tab_selected_item = [tab_items indexOfObject: tab_selected];
|
||||
[tab_selected _setTabState: NSSelectedTab];
|
||||
|
||||
// [self setNeedsDisplay: YES];
|
||||
|
||||
if ([tab_selected view])
|
||||
[self addSubview: [tab_selected view]];
|
||||
{
|
||||
[self addSubview: [tab_selected view]];
|
||||
}
|
||||
|
||||
[self setNeedsDisplay: YES];
|
||||
|
||||
|
@ -291,9 +292,6 @@
|
|||
{
|
||||
NSRect cRect = _bounds;
|
||||
|
||||
// cRect.origin.x = 0;
|
||||
// cRect.origin.y = 0;
|
||||
|
||||
if (tab_type == NSTopTabsBezelBorder)
|
||||
{
|
||||
cRect.origin.y += 1;
|
||||
|
@ -336,8 +334,9 @@
|
|||
switch (tab_type)
|
||||
{
|
||||
case NSTopTabsBezelBorder:
|
||||
aRect.size.height -= 16;
|
||||
rect.size.height -= 16;
|
||||
NSDrawButton(rect, NSZeroRect);
|
||||
NSDrawButton(aRect, NSZeroRect);
|
||||
borderThickness = 2;
|
||||
break;
|
||||
|
||||
|
@ -657,10 +656,6 @@
|
|||
[self selectTabViewItem: anItem];
|
||||
}
|
||||
|
||||
// [self setNeedsDisplay: YES];
|
||||
|
||||
// [_window update];
|
||||
|
||||
return [super hitTest: aPoint];
|
||||
}
|
||||
|
||||
|
|
|
@ -60,6 +60,9 @@
|
|||
|
||||
- (void)setView:(NSView *)view
|
||||
{
|
||||
if (item_view)
|
||||
RELEASE(item_view);
|
||||
|
||||
ASSIGN(item_view, view);
|
||||
}
|
||||
|
||||
|
@ -96,7 +99,7 @@
|
|||
|
||||
- (void)_setTabView:(NSTabView *)tabView
|
||||
{
|
||||
ASSIGN(item_tabview, tabView);
|
||||
item_tabview = tabView;
|
||||
}
|
||||
|
||||
- (NSTabView *)tabView
|
||||
|
|
Loading…
Reference in a new issue