From 577c13f6fd14160984614ba5cdfc37661c9fada4 Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Sat, 17 Jan 2009 20:15:15 -0700 Subject: Cleaned up chat code a bit. Signed-off-by: Ira Rice --- src/gui/chat.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gui/chat.h') diff --git a/src/gui/chat.h b/src/gui/chat.h index 9e137499..f7d05df1 100644 --- a/src/gui/chat.h +++ b/src/gui/chat.h @@ -121,9 +121,9 @@ class ChatWindow : public Window, public gcn::ActionListener, ~ChatWindow(); /** - * Logic (updates components' size) + * Called whenever the widget changes size. */ - void logic(); + void widgetResized(const gcn::Event &event); /** * Adds a line of text to our message list. Parameters: @@ -218,6 +218,8 @@ class ChatWindow : public Window, public gcn::ActionListener, Network *mNetwork; bool mTmpVisible; + void whisper(const std::string &nick, std::string msg); + /** One item in the chat log */ struct CHATLOG { -- cgit v1.2.3-70-g09d2