mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Fixed bug #28580
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29292 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7a717734be
commit
15bc2c5d97
2 changed files with 24 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue