mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-25 22:45:20 +02:00
Overloaded the function SurfaceCollection::getSkinFilePath(), so that it can also be called with a skin as parameter.
This commit is contained in:
parent
d59b713e9b
commit
02b54d38a3
@ -39,6 +39,11 @@ void SurfaceCollection::setSkin(const string &skin) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
string SurfaceCollection::getSkinFilePath(const string &file)
|
string SurfaceCollection::getSkinFilePath(const string &file)
|
||||||
|
{
|
||||||
|
return SurfaceCollection::getSkinFilePath(skin, file);
|
||||||
|
}
|
||||||
|
|
||||||
|
string SurfaceCollection::getSkinFilePath(const string &skin, const string &file)
|
||||||
{
|
{
|
||||||
/* We first search the skin file on the user-specific directory. */
|
/* We first search the skin file on the user-specific directory. */
|
||||||
string path = GMenu2X::getHome() + "/skins/" + skin + "/" + file;
|
string path = GMenu2X::getHome() + "/skins/" + skin + "/" + file;
|
||||||
|
@ -44,6 +44,7 @@ public:
|
|||||||
|
|
||||||
void setSkin(const std::string &skin);
|
void setSkin(const std::string &skin);
|
||||||
std::string getSkinFilePath(const std::string &file);
|
std::string getSkinFilePath(const std::string &file);
|
||||||
|
static std::string getSkinFilePath(const std::string &skin, const std::string &file);
|
||||||
|
|
||||||
bool defaultAlpha;
|
bool defaultAlpha;
|
||||||
void debug();
|
void debug();
|
||||||
|
Loading…
Reference in New Issue
Block a user