summaryrefslogtreecommitdiff
path: root/src/gui/shortcutwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/shortcutwindow.cpp')
-rw-r--r--src/gui/shortcutwindow.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/gui/shortcutwindow.cpp b/src/gui/shortcutwindow.cpp
index 26f1e928..60d18ddf 100644
--- a/src/gui/shortcutwindow.cpp
+++ b/src/gui/shortcutwindow.cpp
@@ -40,8 +40,8 @@ ShortcutWindow::ShortcutWindow(const std::string &title,
// no title presented, title bar is padding so window can be moved.
gcn::Window::setTitleBarHeight(gcn::Window::getPadding());
setShowTitle(false);
- setResizable(true);
- setDefaultVisible(false);
+ setMovable(false);
+ setDefaultVisible(true);
setSaveVisible(true);
setupWindow->registerWindowForReset(this);
@@ -53,9 +53,10 @@ ShortcutWindow::ShortcutWindow(const std::string &title,
setMaxWidth(mItems->getBoxWidth() * mItems->getMaxItems() + border);
setMaxHeight(mItems->getBoxHeight() * mItems->getMaxItems() + border);
- setDefaultSize(mItems->getBoxWidth() + border, mItems->getBoxHeight() *
- mItems->getMaxItems() + border, ImageRect::LOWER_RIGHT,
- mBoxesWidth, 0);
+ setDefaultSize(mItems->getBoxWidth() * 6 + border,
+ mItems->getBoxHeight() * 2 + border,
+ ImageRect::LOWER_RIGHT,
+ 6, 6);
mBoxesWidth += mItems->getBoxWidth() + border;
@@ -70,7 +71,7 @@ ShortcutWindow::ShortcutWindow(const std::string &title,
layout.setRowHeight(0, Layout::AUTO_SET);
layout.setMargin(0);
- loadWindowState();
+ resetToDefaultSize();
}
ShortcutWindow::~ShortcutWindow()