summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-05-05 23:03:27 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-05-05 23:03:27 +0200
commit49eb5513a6b4ae8476f04b4c7c60c45715cf0e62 (patch)
treec7bf273176be3048a177b0f53dc98c3c310d7f1b /src
parent4a41e7d16a6bbe0f8872030a71bc81be5dab3e54 (diff)
downloadmana-49eb5513a6b4ae8476f04b4c7c60c45715cf0e62.tar.gz
mana-49eb5513a6b4ae8476f04b4c7c60c45715cf0e62.tar.bz2
mana-49eb5513a6b4ae8476f04b4c7c60c45715cf0e62.tar.xz
mana-49eb5513a6b4ae8476f04b4c7c60c45715cf0e62.zip
Don't short the shortcut windows by default
The item shortcut window is easily accessible for those who want it, but it's a bit of a power feature so it shouldn't be shown by default.
Diffstat (limited to 'src')
-rw-r--r--src/gui/emoteshortcutcontainer.cpp43
-rw-r--r--src/gui/shortcutwindow.cpp4
-rw-r--r--src/gui/shortcutwindow.h3
3 files changed, 25 insertions, 25 deletions
diff --git a/src/gui/emoteshortcutcontainer.cpp b/src/gui/emoteshortcutcontainer.cpp
index ae5eb859..8e37be72 100644
--- a/src/gui/emoteshortcutcontainer.cpp
+++ b/src/gui/emoteshortcutcontainer.cpp
@@ -19,27 +19,28 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "emoteshortcutcontainer.h"
-#include "palette.h"
-
-#include "../animatedsprite.h"
-#include "../configuration.h"
-#include "../emoteshortcut.h"
-#include "../graphics.h"
-#include "../inventory.h"
-#include "../item.h"
-#include "../itemshortcut.h"
-#include "../keyboardconfig.h"
-#include "../localplayer.h"
-#include "../log.h"
-
-#include "../resources/emotedb.h"
-#include "../resources/image.h"
-#include "../resources/resourcemanager.h"
-
-#include "../utils/dtor.h"
-#include "../utils/gettext.h"
-#include "../utils/stringutils.h"
+#include "gui/emoteshortcutcontainer.h"
+
+#include "gui/palette.h"
+
+#include "animatedsprite.h"
+#include "configuration.h"
+#include "emoteshortcut.h"
+#include "graphics.h"
+#include "inventory.h"
+#include "item.h"
+#include "itemshortcut.h"
+#include "keyboardconfig.h"
+#include "localplayer.h"
+#include "log.h"
+
+#include "resources/emotedb.h"
+#include "resources/image.h"
+#include "resources/resourcemanager.h"
+
+#include "utils/dtor.h"
+#include "utils/gettext.h"
+#include "utils/stringutils.h"
static const int MAX_ITEMS = 12;
diff --git a/src/gui/shortcutwindow.cpp b/src/gui/shortcutwindow.cpp
index 2025d332..b9eda02c 100644
--- a/src/gui/shortcutwindow.cpp
+++ b/src/gui/shortcutwindow.cpp
@@ -33,14 +33,14 @@ static const int SCROLL_PADDING = 0;
int ShortcutWindow::mInstances = 0;
ShortcutWindow::ShortcutWindow(const std::string &title,
- ShortcutContainer *content, bool defaultVisible)
+ ShortcutContainer *content)
{
setWindowName(title);
// no title presented, title bar is padding so window can be moved.
gcn::Window::setTitleBarHeight(gcn::Window::getPadding());
setShowTitle(false);
setResizable(true);
- setDefaultVisible(defaultVisible);
+ setDefaultVisible(false);
setSaveVisible(true);
mItems = content;
diff --git a/src/gui/shortcutwindow.h b/src/gui/shortcutwindow.h
index b3daf0b2..e30ab18a 100644
--- a/src/gui/shortcutwindow.h
+++ b/src/gui/shortcutwindow.h
@@ -38,8 +38,7 @@ class ShortcutWindow : public Window
/**
* Constructor.
*/
- ShortcutWindow(const std::string &title, ShortcutContainer *content,
- bool defaultVisible = true);
+ ShortcutWindow(const std::string &title, ShortcutContainer *content);
/**
* Destructor.