git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29292 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Germán Arias 2010-01-16 05:22:02 +00:00
parent 7a717734be
commit 15bc2c5d97
2 changed files with 24 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2010-01-15 German Arias <german@xelalug.org>
* Source/NSImage.m: Changes to fix bug #28580.
2010-01-15 13:08-EST Gregory John Casamento <greg.casamento@gmail.com>
* Headers/Additions/GNUstepGUI/GSTheme.h: Added method to call

View file

@ -267,6 +267,26 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
}
}
/* Second search on theme bundle */
if (!path)
{
if (ext)
path = [[[GSTheme theme] bundle] pathForResource: realName ofType: ext];
else
{
id o, e;
e = [array objectEnumerator];
while ((o = [e nextObject]))
{
path = [[[GSTheme theme] bundle] pathForResource: realName
ofType: o];
if (path != nil && [path length] != 0)
break;
}
}
}
/* If not found then search in system */
if (!path)
{