mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:20:38 +00:00
Fix static linking
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11167 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1b2f8dae39
commit
cfb13cc185
6 changed files with 40 additions and 4 deletions
|
@ -129,20 +129,23 @@ static NSImage *arrowImageH = nil;
|
|||
if ([_menuItem changesState])
|
||||
{
|
||||
// NSOnState
|
||||
componentSize = [[_menuItem onStateImage] size];
|
||||
if ([_menuItem onStateImage])
|
||||
componentSize = [[_menuItem onStateImage] size];
|
||||
_stateImageWidth = componentSize.width;
|
||||
if (componentSize.height > neededMenuItemHeight)
|
||||
neededMenuItemHeight = componentSize.height;
|
||||
|
||||
// NSOffState
|
||||
componentSize = [[_menuItem offStateImage] size];
|
||||
if ([_menuItem offStateImage])
|
||||
componentSize = [[_menuItem offStateImage] size];
|
||||
if (componentSize.width > _stateImageWidth)
|
||||
_stateImageWidth = componentSize.width;
|
||||
if (componentSize.height > neededMenuItemHeight)
|
||||
neededMenuItemHeight = componentSize.height;
|
||||
|
||||
// NSMixedState
|
||||
componentSize = [[_menuItem mixedStateImage] size];
|
||||
if ([_menuItem mixedStateImage])
|
||||
componentSize = [[_menuItem mixedStateImage] size];
|
||||
if (componentSize.width > _stateImageWidth)
|
||||
_stateImageWidth = componentSize.width;
|
||||
if (componentSize.height > neededMenuItemHeight)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue