mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 13:20:47 +00:00
According to Gregory John Casamento <greg_casamento@yahoo.com> the
popup button does not change its enable state when the selected item does. To adopt this behaviour all setEnable: calls have been removed and one in [initWithCoder:] added that enables the popup for all old encodings. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17666 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
718622df26
commit
a1b8af9d1e
1 changed files with 4 additions and 5 deletions
|
@ -102,7 +102,6 @@ static NSImage *_pbc_image[2];
|
|||
|
||||
if (item == _menuItem)
|
||||
{
|
||||
[self setEnabled: [[self menuItem] isEnabled]];
|
||||
[[self controlView] setNeedsDisplay: YES];
|
||||
}
|
||||
}
|
||||
|
@ -417,14 +416,13 @@ static NSImage *_pbc_image[2];
|
|||
[_menuItem setImage: nil];
|
||||
}
|
||||
|
||||
[super setMenuItem: item];
|
||||
|
||||
//[super setMenuItem: item];
|
||||
ASSIGN (_menuItem, item);
|
||||
|
||||
if ([_menuItem image] == nil)
|
||||
{
|
||||
[_menuItem setImage: image];
|
||||
}
|
||||
|
||||
[self setEnabled: [_menuItem isEnabled]];
|
||||
}
|
||||
|
||||
// Dealing with selection
|
||||
|
@ -871,6 +869,7 @@ static NSImage *_pbc_image[2];
|
|||
[anItem setOnStateImage: nil];
|
||||
[anItem setMixedStateImage: nil];
|
||||
}
|
||||
[self setEnabled: YES];
|
||||
}
|
||||
|
||||
[self selectItem: selectedItem];
|
||||
|
|
Loading…
Reference in a new issue