From 762bd357756e35b0a25cc6a66a890dfedb1f6596 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Mon, 6 Feb 2012 23:15:13 +0100 Subject: Some cleanups in the initialization of wallpaper paths The 'paths' configuration in client-data now overrides any configuration in 'branding', so that it will apply after the updates for a certain server have been downloaded. Also, some isDirectory checks have been removed. When the configuration is wrong, it's probably better to see that there is a problem. Reviewed-by: Yohann Ferreira --- src/gui/widgets/desktop.cpp | 2 +- src/gui/widgets/desktop.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui') diff --git a/src/gui/widgets/desktop.cpp b/src/gui/widgets/desktop.cpp index d0e2a498..bf833898 100644 --- a/src/gui/widgets/desktop.cpp +++ b/src/gui/widgets/desktop.cpp @@ -67,7 +67,7 @@ void Desktop::reloadWallpaper() setBestFittingWallpaper(); } -void Desktop::widgetResized(const gcn::Event &event) +void Desktop::widgetResized(const gcn::Event &) { setBestFittingWallpaper(); } diff --git a/src/gui/widgets/desktop.h b/src/gui/widgets/desktop.h index 593c8ab0..8ecb7e03 100644 --- a/src/gui/widgets/desktop.h +++ b/src/gui/widgets/desktop.h @@ -54,7 +54,7 @@ class Desktop : public Container, gcn::WidgetListener */ void reloadWallpaper(); - void widgetResized(const gcn::Event &event); + void widgetResized(const gcn::Event &); void draw(gcn::Graphics *graphics); -- cgit v1.2.3-70-g09d2