mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 14:30:54 +00:00
Select new item when there isn't any selection.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25474 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
74b20f9065
commit
83dba0e1a3
2 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2007-09-10 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
|
* Source/NSPopUpButtonCell.m (-insertItemWithTitle:atIndex:):
|
||||||
|
Select new item when there isn't any selection.
|
||||||
|
|
||||||
2007-09-10 Fred Kiefer <FredKiefer@gmx.de>
|
2007-09-10 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/NSTableHeaderView.m,
|
* Source/NSTableHeaderView.m,
|
||||||
|
|
|
@ -359,6 +359,12 @@ static NSImage *_pbc_image[2];
|
||||||
// FIXME: The documentation is unclear what to set here.
|
// FIXME: The documentation is unclear what to set here.
|
||||||
//[anItem setAction: [self action]];
|
//[anItem setAction: [self action]];
|
||||||
//[anItem setTarget: [self target]];
|
//[anItem setTarget: [self target]];
|
||||||
|
|
||||||
|
// Select the new item if there isn't any selection.
|
||||||
|
if (_selectedItem == nil)
|
||||||
|
{
|
||||||
|
[self selectItem: anItem];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue