Skip to content

Commit

Permalink
Used YSettings::getThemDir()
Browse files Browse the repository at this point in the history
  • Loading branch information
anaselli committed Jan 17, 2013
1 parent 0b62fd1 commit 02990f1
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions src/YGUI.cc
Expand Up @@ -147,27 +147,18 @@ void YGUI::checkInit()
g_log_set_always_fatal (GLogLevelFlags (G_LOG_LEVEL_ERROR|G_LOG_LEVEL_CRITICAL|
G_LOG_LEVEL_WARNING| G_LOG_LEVEL_MESSAGE|G_LOG_LEVEL_INFO|G_LOG_LEVEL_DEBUG));
#endif
std::string progSubDir = YSettings::getProgSubDir();

if (progSubDir.compare(""))
{
progSubDir = progSubDir + "/theme/";
}
else
{
progSubDir = THEMEDIR "/";
}
std::string themeSubDir = YSettings::access()->getThemeDir();

char* st = getenv("Y2STYLE");
std::string style = st ? st : "";

if (!style.empty())
if (style.size())
{
style = progSubDir + style;
style = themeSubDir + style;
}
else
{
style = progSubDir + "style.css";
style = themeSubDir + "style.css";
}

yuiMilestone() << "Style \"" << style << "\"\n";
Expand Down

0 comments on commit 02990f1

Please sign in to comment.