mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 19:57:39 +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
7a410e59c1
commit
d15a55ee08
6 changed files with 40 additions and 4 deletions
|
@ -152,6 +152,7 @@ GSTrackingRect.m \
|
|||
GSServicesManager.m \
|
||||
tiff.m \
|
||||
externs.m \
|
||||
linking.m \
|
||||
GSFontInfo.m \
|
||||
GSTable.m \
|
||||
GSHbox.m \
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -421,3 +421,14 @@ const NSWindowDepth NSTwentyFourBitRGBDepth = 520; // 1000001000 RGB | 8bps
|
|||
const NSWindowDepth _GSWindowDepths[7] = { 258, 264, 514, 516, 517, 520, 0 };
|
||||
|
||||
/* End of color functions externs */
|
||||
|
||||
extern void __objc_gui_force_linking (void);
|
||||
|
||||
void
|
||||
__objc_gui_force_linking (void)
|
||||
{
|
||||
extern void __objc_gui_linking (void);
|
||||
__objc_gui_linking ();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue