diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-05 23:03:27 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-05 23:03:27 +0200 |
commit | 49eb5513a6b4ae8476f04b4c7c60c45715cf0e62 (patch) | |
tree | c7bf273176be3048a177b0f53dc98c3c310d7f1b | |
parent | 4a41e7d16a6bbe0f8872030a71bc81be5dab3e54 (diff) | |
download | mana-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.
-rw-r--r-- | src/gui/emoteshortcutcontainer.cpp | 43 | ||||
-rw-r--r-- | src/gui/shortcutwindow.cpp | 4 | ||||
-rw-r--r-- | src/gui/shortcutwindow.h | 3 |
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. |