mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 05:20:38 +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
|
@ -209,7 +209,6 @@ GSStringFromBorderType(NSBorderType borderType)
|
|||
|
||||
@interface NSImage (GSTheme)
|
||||
+ (NSImage*) _setImage: (NSImage*)image name: (NSString*)name;
|
||||
- (void) _setArchiveByName: (BOOL)flag;
|
||||
@end
|
||||
|
||||
@interface GSTheme (Private)
|
||||
|
@ -494,15 +493,6 @@ typedef struct {
|
|||
* any previous/default image of the same name.
|
||||
*/
|
||||
[_images setObject: image forKey: imageName];
|
||||
|
||||
/* 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 _setArchiveByName: YES];
|
||||
|
||||
RELEASE(image);
|
||||
old = [NSImage imageNamed: imageName];
|
||||
if (old == nil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue