summaryrefslogtreecommitdiff
path: root/src/gui/chatinput.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-07-07 20:12:58 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-07-07 20:12:58 +0000
commit502c76be8587c1138f4939411be77830619f64d2 (patch)
tree975189dde9d25680dac9802bd36cf41321a6c201 /src/gui/chatinput.h
parent9836222a00028cc9a3aea9bb4c316a00b59ea33a (diff)
downloadmana-client-502c76be8587c1138f4939411be77830619f64d2.tar.gz
mana-client-502c76be8587c1138f4939411be77830619f64d2.tar.bz2
mana-client-502c76be8587c1138f4939411be77830619f64d2.tar.xz
mana-client-502c76be8587c1138f4939411be77830619f64d2.zip
Ported to Guichan 0.7.0. Unfortunately, since Guichan 0.6.x didn't have a
FocusListener, compatibility with older versions is broken.
Diffstat (limited to 'src/gui/chatinput.h')
-rw-r--r--src/gui/chatinput.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/chatinput.h b/src/gui/chatinput.h
index 59d0daf3..da2342ae 100644
--- a/src/gui/chatinput.h
+++ b/src/gui/chatinput.h
@@ -26,10 +26,12 @@
#include "textfield.h"
+#include <guichan/focuslistener.hpp>
+
/**
* The chat input hides when it loses focus. It is also invisible by default.
*/
-class ChatInput : public TextField
+class ChatInput : public TextField, public gcn::FocusListener
{
public:
/**
@@ -41,7 +43,7 @@ class ChatInput : public TextField
* Called if the chat input loses focus. It will set itself to
* invisible as result.
*/
- void focusLost();
+ void focusLost(const gcn::Event &event);
};
#endif