summaryrefslogtreecommitdiff
path: root/src/gui/shortcutwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-05-08 01:03:20 +0300
committerAndrei Karas <akaras@inbox.ru>2012-05-08 01:03:20 +0300
commitbfab477aead2b4376e9caa193dca2c62c2ff26f9 (patch)
treee0fe0fb39d0ad476d7109ecafb452de05c0a1566 /src/gui/shortcutwindow.cpp
parent9e65d853ef4cbebb9899dabe0233ad83a0b9e97a (diff)
downloadmv-bfab477aead2b4376e9caa193dca2c62c2ff26f9.tar.gz
mv-bfab477aead2b4376e9caa193dca2c62c2ff26f9.tar.bz2
mv-bfab477aead2b4376e9caa193dca2c62c2ff26f9.tar.xz
mv-bfab477aead2b4376e9caa193dca2c62c2ff26f9.zip
Add titlepadding option to theme file.
Now used only in shortcuts window without title bar.
Diffstat (limited to 'src/gui/shortcutwindow.cpp')
-rw-r--r--src/gui/shortcutwindow.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/gui/shortcutwindow.cpp b/src/gui/shortcutwindow.cpp
index 0e968efef..4d7443037 100644
--- a/src/gui/shortcutwindow.cpp
+++ b/src/gui/shortcutwindow.cpp
@@ -26,6 +26,7 @@
#include "logger.h"
#include "gui/setup.h"
+#include "gui/theme.h"
#include "gui/widgets/layout.h"
#include "gui/widgets/scrollarea.h"
@@ -59,7 +60,15 @@ ShortcutWindow::ShortcutWindow(const std::string &title,
{
setWindowName(title);
// no title presented, title bar is padding so window can be moved.
- gcn::Window::setTitleBarHeight(gcn::Window::getPadding() + 1);
+ if (mSkin)
+ {
+ gcn::Window::setTitleBarHeight(gcn::Window::getPadding()
+ + mSkin->getTitlePadding());
+ }
+ else
+ {
+ gcn::Window::setTitleBarHeight(gcn::Window::getPadding());
+ }
setShowTitle(false);
setResizable(true);
setDefaultVisible(false);