mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 23:11:18 +00:00
Allow table views without header.
Popup buttons no longer display values from old menus after a change. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25702 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
05e616b2e1
commit
8730f4cab8
4 changed files with 14 additions and 9 deletions
|
@ -1,3 +1,12 @@
|
|||
2007-12-07 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSTableView.m (-initWithCoder:): Don't create a header
|
||||
view, if there is none decoded.
|
||||
* Source/NSScrollView.m (-_synchronizeHeaderAndCornerView): Don't
|
||||
show corner view if there is no header view.
|
||||
* Source/NSPopUpButtonCell.m (-setMenu:): Select an emtry from the
|
||||
new menu.
|
||||
|
||||
2007-12-07 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/GSServicesManager.m: Fixup to add/remove menu items
|
||||
|
|
|
@ -157,6 +157,9 @@ static NSImage *_pbc_image[2];
|
|||
{
|
||||
[self setMenuView: nil];
|
||||
}
|
||||
|
||||
[self selectItemAtIndex: [_menu numberOfItems] - 1];
|
||||
[self synchronizeTitleAndSelectedItem];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1612,7 +1612,8 @@ static float scrollerWidth;
|
|||
{
|
||||
[self removeSubview: _headerClipView];
|
||||
}
|
||||
if (_hasVertScroller == YES)
|
||||
if (_hasHeaderView == YES &&
|
||||
_hasVertScroller == YES)
|
||||
{
|
||||
aView = nil;
|
||||
_hasCornerView =
|
||||
|
|
|
@ -5751,14 +5751,6 @@ static BOOL selectContiguousRegion(NSTableView *self,
|
|||
{
|
||||
[self setHeaderView: [aDecoder decodeObjectForKey: @"NSHeaderView"]];
|
||||
}
|
||||
else
|
||||
{
|
||||
NSRect viewFrame = [self frame];
|
||||
|
||||
_headerView = [[NSTableHeaderView alloc] init];
|
||||
[_headerView setFrameSize: NSMakeSize(viewFrame.size.width, 22.0)];
|
||||
[_headerView setTableView: self];
|
||||
}
|
||||
|
||||
if ([aDecoder containsValueForKey: @"NSTvFlags"])
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue