summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-09-11 00:46:34 +0300
committerAndrei Karas <akaras@inbox.ru>2011-09-11 00:46:34 +0300
commit632c1797013d8b0a987ab68341b50354afdb1f9d (patch)
treefda998f25feac4696058c8c1a14e430dceac66d6 /src/gui/widgets
parentee39f800bd1809b25cc7c05238e2fa7abccd8ab3 (diff)
downloadmanaverse-632c1797013d8b0a987ab68341b50354afdb1f9d.tar.gz
manaverse-632c1797013d8b0a987ab68341b50354afdb1f9d.tar.bz2
manaverse-632c1797013d8b0a987ab68341b50354afdb1f9d.tar.xz
manaverse-632c1797013d8b0a987ab68341b50354afdb1f9d.zip
Add support for padding in theme configuration files.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/window.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp
index 1ffbac31e..2d4c443c6 100644
--- a/src/gui/widgets/window.cpp
+++ b/src/gui/widgets/window.cpp
@@ -86,6 +86,8 @@ Window::Window(const std::string &caption, bool modal, Window *parent,
if (Theme::instance())
{
mSkin = Theme::instance()->load(skin);
+ if (mSkin)
+ setPadding(mSkin->getPadding());
}
else
{