mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 16:30:53 +00:00
* Source/GSTheme.m: remove forward declaration for _setArchiveByName
from NSImage category. * Source/NSImage.m: Added code in _setImage:forName: to archive by name instead. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31075 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
86ff2f4099
commit
cefa1b53e7
3 changed files with 16 additions and 21 deletions
|
@ -2152,18 +2152,16 @@ iterate_reps_for_types(NSArray* imageReps, SEL method)
|
|||
}
|
||||
[proxy _setResource: image];
|
||||
IF_NO_GC([[proxy retain] autorelease]);
|
||||
|
||||
/* Force the image to be archived by name. This prevents
|
||||
* problems such as when/if gorm is being used with a theme
|
||||
* active, it will not save the image which was loaded
|
||||
* here and will, instead save the name so that the proper
|
||||
* image gets loaded in the future.
|
||||
*/
|
||||
image->_flags.archiveByName = YES;
|
||||
|
||||
[imageLock unlock];
|
||||
return (NSImage*)proxy;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method allows the theme system to specify that an image
|
||||
* should be archived using the reference to it's name only.
|
||||
* This prevents saving theme specific image data into the
|
||||
* images in an archive.
|
||||
*/
|
||||
- (void) _setArchiveByName: (BOOL)flag;
|
||||
{
|
||||
_flags.archiveByName = flag;
|
||||
}
|
||||
@end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue