Author: ericwa
Date: Sat Apr  6 21:30:48 2013
New Revision: 36482

URL: http://svn.gna.org/viewcvs/gnustep?rev=36482&view=rev
Log:
* Source/GSTheme.m:
* Source/NSImage.m: Revert previous commit and write a much cleaner
implementation that fixes the same bug.

I removed the step in theme activation where we call
+[NSImage _setImagePath:name:] on each image in the theme, and instead
modified +[NSImage _pathForImageNamed:] to also search the theme images
directory.

When a GSTheme activates now, it only calls +[NSImage _reloadCachedImages]
which checks all NSImage cached by name and reloads any whose path has
changed.

Modified:
    libs/gui/trunk/ChangeLog
    libs/gui/trunk/Source/GSTheme.m
    libs/gui/trunk/Source/NSImage.m


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to