mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
In [itemChanged:] set if the cell is enabled like the item.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17621 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f85a2e5f12
commit
1b53ae15a9
1 changed files with 4 additions and 1 deletions
|
@ -343,9 +343,12 @@ _addLeftBorderOffsetToRect(NSRect aRect)
|
|||
{
|
||||
int index = [[[notification userInfo] objectForKey: @"NSMenuItemIndex"]
|
||||
intValue];
|
||||
NSMenuItemCell *aCell = [_itemCells objectAtIndex: index];
|
||||
|
||||
// Enabling of the item may have changed
|
||||
[aCell setEnabled: [[aCell menuItem] isEnabled]];
|
||||
// Mark the cell associated with the item as needing resizing.
|
||||
[[_itemCells objectAtIndex: index] setNeedsSizing: YES];
|
||||
[aCell setNeedsSizing: YES];
|
||||
[self setNeedsDisplayForItemAtIndex: index];
|
||||
|
||||
// Mark the menu view as needing to be resized.
|
||||
|
|
Loading…
Reference in a new issue