summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/setup.cpp10
-rw-r--r--src/gui/setup.h2
2 files changed, 10 insertions, 2 deletions
diff --git a/src/gui/setup.cpp b/src/gui/setup.cpp
index 62d79d4d..8062ac06 100644
--- a/src/gui/setup.cpp
+++ b/src/gui/setup.cpp
@@ -65,10 +65,14 @@ Setup::Setup():
add(btn);
// Store this button, as it needs to be enabled/disabled
- if (!strcmp(*curBtn, "Reset Windows"))
+ if (!strcmp(*curBtn, "Reset Windows")) {
mResetWindows = btn;
+ printf("!\n");
+ }
}
+ if (mResetWindows) printf("!\n");
+
TabbedArea *panel = new TabbedArea;
panel->setDimension(gcn::Rectangle(5, 5, width - 10, height - 40));
@@ -146,4 +150,6 @@ void Setup::action(const gcn::ActionEvent &event)
void Setup::setInGame(bool inGame)
{
mResetWindows->setEnabled(inGame);
-} \ No newline at end of file
+}
+
+Setup* setupWindow;
diff --git a/src/gui/setup.h b/src/gui/setup.h
index 075c88bf..919445b7 100644
--- a/src/gui/setup.h
+++ b/src/gui/setup.h
@@ -63,4 +63,6 @@ class Setup : public Window, public gcn::ActionListener
gcn::Button *mResetWindows;
};
+extern Setup* setupWindow;
+
#endif