summaryrefslogtreecommitdiff
path: root/src/gui/window.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-01-15 23:23:12 -0700
committerIra Rice <irarice@gmail.com>2009-01-15 23:23:12 -0700
commit29a65dd896255e6e173201dcc0d50bfc273afb61 (patch)
treeff86af90bf6fa447964ba6bf008f1d3efbaa1035 /src/gui/window.cpp
parentecc18d3a2ed44d4b4e6ccfe879771686b2616bb4 (diff)
downloadmana-29a65dd896255e6e173201dcc0d50bfc273afb61.tar.gz
mana-29a65dd896255e6e173201dcc0d50bfc273afb61.tar.bz2
mana-29a65dd896255e6e173201dcc0d50bfc273afb61.tar.xz
mana-29a65dd896255e6e173201dcc0d50bfc273afb61.zip
Fixed Item Popup window transparency (double setting of the skin)
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/window.cpp')
-rw-r--r--src/gui/window.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/window.cpp b/src/gui/window.cpp
index e82a370e..f6f5f4b8 100644
--- a/src/gui/window.cpp
+++ b/src/gui/window.cpp
@@ -82,7 +82,8 @@ Window::Window(const std::string& caption, bool modal, Window *parent, const std
{
logger->log("Window::Window(\"%s\")", caption.c_str());
- if (!windowContainer) {
+ if (!windowContainer)
+ {
throw GCN_EXCEPTION("Window::Window(): no windowContainer set");
}
@@ -126,12 +127,14 @@ Window::~Window()
const std::string &name = mWindowName;
// Saving X, Y and Width and Height for resizables in the config
- if (!name.empty()) {
+ if (!name.empty())
+ {
config.setValue(name + "WinX", getX());
config.setValue(name + "WinY", getY());
config.setValue(name + "Visible", isVisible());
- if (mGrip) {
+ if (mGrip)
+ {
config.setValue(name + "WinWidth", getWidth());
config.setValue(name + "WinHeight", getHeight());
}