summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/window.cpp8
-rw-r--r--src/gui/window.h5
2 files changed, 13 insertions, 0 deletions
diff --git a/src/gui/window.cpp b/src/gui/window.cpp
index ac869fab..7eb8643f 100644
--- a/src/gui/window.cpp
+++ b/src/gui/window.cpp
@@ -88,6 +88,14 @@ void Window::setWindowContainer(WindowContainer *wc)
windowContainer = wc;
}
+void Window::logic()
+{
+ if (mContent != NULL)
+ {
+ mContent->logic();
+ }
+}
+
void Window::draw(gcn::Graphics* graphics)
{
int x, y;
diff --git a/src/gui/window.h b/src/gui/window.h
index 2b98bebf..126fe2f4 100644
--- a/src/gui/window.h
+++ b/src/gui/window.h
@@ -82,6 +82,11 @@ class Window : public gcn::Window
void draw(gcn::Graphics *graphics);
/**
+ * Calls logic on content widget (cause Guichan 0.3.0 forgot this)
+ */
+ void logic();
+
+ /**
* Adds a widget to the window.
*/
void add(gcn::Widget *w);