mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 12:50:40 +00:00
Merge from 0.6.5
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@6040 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6b5e33078b
commit
f34100ac45
42 changed files with 2343 additions and 1170 deletions
|
@ -228,8 +228,18 @@ static float GSMenuBarHeight = 25.0; // A wild guess.
|
|||
- (void) setMenuItemCell: (NSMenuItemCell *)cell
|
||||
forItemAtIndex: (int)index
|
||||
{
|
||||
NSMenuItem *anItem = [menuv_items_link objectAtIndex: index];
|
||||
|
||||
[menuv_itemCells replaceObjectAtIndex: index withObject: cell];
|
||||
|
||||
[cell setMenuItem: anItem];
|
||||
[cell setMenuView: self];
|
||||
|
||||
if ([self highlightedItemIndex] == index)
|
||||
[cell setHighlighted: YES];
|
||||
else
|
||||
[cell setHighlighted: NO];
|
||||
|
||||
// Mark the new cell and the menu view as needing resizing.
|
||||
[cell setNeedsSizing: YES];
|
||||
[self setNeedsSizing: YES];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue