diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-05 03:13:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-05 03:13:43 +0300 |
commit | e3b9d60938b1299f2f66e68ff291060654c58d66 (patch) | |
tree | 28425cf579903d6735faa801a6968b56abdc7230 /src/gui/shortcutwindow.cpp | |
parent | 10c8e7da87de2219fad19fd899e97257164e4830 (diff) | |
download | mv-e3b9d60938b1299f2f66e68ff291060654c58d66.tar.gz mv-e3b9d60938b1299f2f66e68ff291060654c58d66.tar.bz2 mv-e3b9d60938b1299f2f66e68ff291060654c58d66.tar.xz mv-e3b9d60938b1299f2f66e68ff291060654c58d66.zip |
Move some hardcoded paddings to themes.
Diffstat (limited to 'src/gui/shortcutwindow.cpp')
-rw-r--r-- | src/gui/shortcutwindow.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/gui/shortcutwindow.cpp b/src/gui/shortcutwindow.cpp index a051705b8..7c450855a 100644 --- a/src/gui/shortcutwindow.cpp +++ b/src/gui/shortcutwindow.cpp @@ -59,16 +59,8 @@ ShortcutWindow::ShortcutWindow(const std::string &title, Window("Window", false, nullptr, skinFile) { setWindowName(title); - // no title presented, title bar is padding so window can be moved. - if (mSkin) - { - gcn::Window::setTitleBarHeight(gcn::Window::getPadding() - + mSkin->getTitlePadding()); - } - else - { - gcn::Window::setTitleBarHeight(gcn::Window::getPadding()); - } + setTitleBarHeight(getPadding() + getTitlePadding()); + setShowTitle(false); setResizable(true); setDefaultVisible(false); |