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:
Adam Fedor 2001-10-17 03:53:55 +00:00
parent 7a410e59c1
commit d15a55ee08
6 changed files with 40 additions and 4 deletions

View file

@ -152,6 +152,7 @@ GSTrackingRect.m \
GSServicesManager.m \
tiff.m \
externs.m \
linking.m \
GSFontInfo.m \
GSTable.m \
GSHbox.m \

View file

@ -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)

View file

@ -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 ();
}