summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-08-02 02:20:05 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-08-02 02:20:05 +0200
commit1a19ab21b2ae6d2fef980bbf33484dfb6591bbcb (patch)
treee17f5de1bef9ea2e4d9280be393ce6855a5954f2
parentce3b24e780d39e323454c6ef24982a1f9c7b605c (diff)
downloadmana-1a19ab21b2ae6d2fef980bbf33484dfb6591bbcb.tar.gz
mana-1a19ab21b2ae6d2fef980bbf33484dfb6591bbcb.tar.bz2
mana-1a19ab21b2ae6d2fef980bbf33484dfb6591bbcb.tar.xz
mana-1a19ab21b2ae6d2fef980bbf33484dfb6591bbcb.zip
Tweaked default positions of chat and shortcut window
Added some margin and made the shortcut window not movable/resizable.
-rw-r--r--src/gui/chatwindow.cpp2
-rw-r--r--src/gui/shortcutwindow.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/chatwindow.cpp b/src/gui/chatwindow.cpp
index cc09d19e..2c99c6e0 100644
--- a/src/gui/chatwindow.cpp
+++ b/src/gui/chatwindow.cpp
@@ -107,7 +107,7 @@ ChatWindow::ChatWindow():
setResizable(true);
setDefaultVisible(true);
setSaveVisible(true);
- setDefaultSize(600, 123, ImageRect::LOWER_LEFT);
+ setDefaultSize(400, 123, ImageRect::LOWER_LEFT, -6, 6);
setMinWidth(150);
setMinHeight(90);
diff --git a/src/gui/shortcutwindow.cpp b/src/gui/shortcutwindow.cpp
index 774a9103..766659c9 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);
@@ -56,7 +56,7 @@ ShortcutWindow::ShortcutWindow(const std::string &title,
setDefaultSize(mItems->getBoxWidth() * 6 + border,
mItems->getBoxHeight() * 2 + border,
ImageRect::LOWER_RIGHT,
- 0, 0);
+ 6, 6);
mBoxesWidth += mItems->getBoxWidth() + border;