mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 10:21:00 +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
df93c9277b
commit
fd57feed5b
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>
|
2010-01-15 13:08-EST Gregory John Casamento <greg.casamento@gmail.com>
|
||||||
|
|
||||||
* Headers/Additions/GNUstepGUI/GSTheme.h: Added method to call
|
* 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 not found then search in system */
|
||||||
if (!path)
|
if (!path)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue