make non-standard images persist oafter theme has unloaded, in case anything

in the gui is still using them.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29851 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2010-03-05 10:43:40 +00:00
parent 7f3482e73a
commit 949deb4d7a
2 changed files with 5 additions and 1 deletions

View file

@ -4,6 +4,7 @@
* Source/NSPasteboard.m: ditto
* Source/GSTheme.m: Rewrite method replacement code to use new runtime
API... turns out to be rather simpler than using the old API.
Add safety measure for themes which load non-standard images.
2010-03-04 Fred Kiefer <FredKiefer@gmx.de>

View file

@ -497,8 +497,11 @@ typedef struct {
* and the theme is unloaded, what happens when the
* app tries to draw using the proxy to the unloaded
* image?
* To avoid that possibility, we save the new image
* as if it were the old one ... so when the theme is
* unloaded the old image persists.
*/
NSLog(@"Help, could not load image '%@'", imageName);
[_oldImages setObject: image forKey: imageName];
}
else
{