diff options
author | Bjørn <bjorn@horst-dieter.(none)> | 2009-04-12 19:04:20 +0200 |
---|---|---|
committer | Bjørn <bjorn@horst-dieter.(none)> | 2009-04-12 19:06:38 +0200 |
commit | 9f5b89189f00c959882f86067634a512e6970614 (patch) | |
tree | 8964803d49528d35585f1fb26f8f22e3c7353a52 /src/gui/widgets/desktop.cpp | |
parent | a6998fbdfaf84aa1920564d97e3421ed28c9a893 (diff) | |
download | mana-9f5b89189f00c959882f86067634a512e6970614.tar.gz mana-9f5b89189f00c959882f86067634a512e6970614.tar.bz2 mana-9f5b89189f00c959882f86067634a512e6970614.tar.xz mana-9f5b89189f00c959882f86067634a512e6970614.zip |
Moved client version string creation to preprocessor
Diffstat (limited to 'src/gui/widgets/desktop.cpp')
-rw-r--r-- | src/gui/widgets/desktop.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/widgets/desktop.cpp b/src/gui/widgets/desktop.cpp index 4b806095..a4164bcc 100644 --- a/src/gui/widgets/desktop.cpp +++ b/src/gui/widgets/desktop.cpp @@ -39,7 +39,7 @@ Desktop::Desktop() Wallpaper::loadWallpapers(); - versionLabel = new Label(Main::version); + gcn::Label *versionLabel = new Label(FULL_VERSION); add(versionLabel, 25, 2); } @@ -47,7 +47,6 @@ Desktop::~Desktop() { if (mWallpaper) mWallpaper->decRef(); - delete versionLabel; } void Desktop::reloadWallpaper() @@ -80,7 +79,7 @@ void Desktop::draw(gcn::Graphics *graphics) (getHeight() - mWallpaper->getHeight()) / 2); } - drawChildren(graphics); + Container::draw(graphics); } void Desktop::setBestFittingWallpaper() |