diff options
author | Jared Adams <jaxad0127@gmail.com> | 2010-02-27 10:35:57 -0700 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-02-27 11:01:24 -0700 |
commit | 43ccd84af0707b29b146a9ea3d21094d6eb30e3a (patch) | |
tree | c2e371bf82366bbcae1ede8758d087c54572c489 /src/gui/widgets | |
parent | 024ad66a350883597ba4c34d1c5868ef43c086a0 (diff) | |
download | mana-client-43ccd84af0707b29b146a9ea3d21094d6eb30e3a.tar.gz mana-client-43ccd84af0707b29b146a9ea3d21094d6eb30e3a.tar.bz2 mana-client-43ccd84af0707b29b146a9ea3d21094d6eb30e3a.tar.xz mana-client-43ccd84af0707b29b146a9ea3d21094d6eb30e3a.zip |
Report more info on client in cURL useragent and Desktop
Reviewed-by: Thorbjørn Lindeijer
Reviewed-by: Chuck Miller
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/desktop.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/gui/widgets/desktop.cpp b/src/gui/widgets/desktop.cpp index e7cd949a..2a80cc11 100644 --- a/src/gui/widgets/desktop.cpp +++ b/src/gui/widgets/desktop.cpp @@ -20,6 +20,7 @@ #include "gui/widgets/desktop.h" +#include "configuration.h" #include "graphics.h" #include "log.h" #include "main.h" @@ -32,6 +33,8 @@ #include "resources/resourcemanager.h" #include "resources/wallpaper.h" +#include "utils/stringutils.h" + Desktop::Desktop() : mWallpaper(0) { @@ -39,7 +42,14 @@ Desktop::Desktop() Wallpaper::loadWallpapers(); - mVersionLabel = new Label(FULL_VERSION); + std::string appName = branding.getValue("appName", ""); + + if (appName.empty()) + mVersionLabel = new Label(FULL_VERSION); + else + mVersionLabel = new Label(strprintf("%s (Mana %s)", appName.c_str(), + FULL_VERSION)); + mVersionLabel->setBackgroundColor(gcn::Color(255, 255, 255, 128)); add(mVersionLabel, 25, 2); } |