diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-03-24 22:55:57 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-03-31 17:57:30 +0200 |
commit | 9a0f5327c25c57963af837439d23a61c9510a6ac (patch) | |
tree | b185f39126080409d981fd83e657a7e963804b0f /src/gui/widgets/window.cpp | |
parent | 2053bb3a588b504f255e83b1e7b4f9b935a5cbf3 (diff) | |
download | mana-9a0f5327c25c57963af837439d23a61c9510a6ac.tar.gz mana-9a0f5327c25c57963af837439d23a61c9510a6ac.tar.bz2 mana-9a0f5327c25c57963af837439d23a61c9510a6ac.tar.xz mana-9a0f5327c25c57963af837439d23a61c9510a6ac.zip |
Removed the ability to assign custom skins to windows/popups
Old settings are causing it to fall back on the wrong combination of
files if old data is in the search path.
Reviewed-by: Jared Adams
Diffstat (limited to 'src/gui/widgets/window.cpp')
-rw-r--r-- | src/gui/widgets/window.cpp | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp index 2db3afb5..118ee7c0 100644 --- a/src/gui/widgets/window.cpp +++ b/src/gui/widgets/window.cpp @@ -48,7 +48,6 @@ Window::Window(const std::string &caption, bool modal, Window *parent, mParent(parent), mLayout(NULL), mWindowName("window"), - mDefaultSkinPath(skin), mShowTitle(true), mModal(modal), mCloseButton(false), @@ -73,7 +72,7 @@ Window::Window(const std::string &caption, bool modal, Window *parent, setTitleBarHeight(20); // Loads the skin - mSkin = Theme::instance()->load(skin, mDefaultSkinPath); + mSkin = Theme::instance()->load(skin); // Add this window to the window container windowContainer->add(this); @@ -515,8 +514,6 @@ void Window::mouseDragged(gcn::MouseEvent &event) void Window::loadWindowState() { const std::string &name = mWindowName; - const std::string skinName = config.getValue(name + "Skin", - mSkin->getFilePath()); assert(!name.empty()); setPosition((int) config.getValue(name + "WinX", mDefaultX), @@ -528,12 +525,6 @@ void Window::loadWindowState() if (mStickyButton) setSticky((bool) config.getValue(name + "Sticky", isSticky())); - if (skinName.compare(mSkin->getFilePath()) != 0) - { - mSkin->instances--; - mSkin = Theme::instance()->load(skinName, mDefaultSkinPath); - } - if (mGrip) { int width = (int) config.getValue(name + "WinWidth", mDefaultWidth); @@ -573,8 +564,6 @@ void Window::saveWindowState() if (mStickyButton) config.setValue(mWindowName + "Sticky", isSticky()); - config.setValue(mWindowName + "Skin", mSkin->getFilePath()); - if (mGrip) { if (getMinWidth() > getWidth()) |