diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-04-08 06:23:54 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-04-08 06:23:54 -0600 |
commit | 89f59c09fec10ff163f410960f77a9391f9e1e61 (patch) | |
tree | 92041c233db743748ab7005c638c3c4374b339f9 /src/gui/chat.cpp | |
parent | 098b9f71c878af8862e8ef80289e806c93464513 (diff) | |
download | mana-89f59c09fec10ff163f410960f77a9391f9e1e61.tar.gz mana-89f59c09fec10ff163f410960f77a9391f9e1e61.tar.bz2 mana-89f59c09fec10ff163f410960f77a9391f9e1e61.tar.xz mana-89f59c09fec10ff163f410960f77a9391f9e1e61.zip |
Move ChatInput into the files for ChatWindow
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r-- | src/gui/chat.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp index 17b1a3dc..86e5865a 100644 --- a/src/gui/chat.cpp +++ b/src/gui/chat.cpp @@ -21,7 +21,6 @@ #include "chat.h" -#include "gui/chatinput.h" #include "gui/itemlinkhandler.h" #include "gui/recorder.h" #include "gui/sdlinput.h" @@ -40,6 +39,18 @@ #include <guichan/focushandler.hpp> +ChatInput::ChatInput() +{ + setVisible(false); + + addFocusListener(this); +} + +void ChatInput::focusLost(const gcn::Event &event) +{ + setVisible(false); +} + ChatWindow::ChatWindow(): Window(_("Chat")), mTmpVisible(false) |