diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-05-05 07:03:36 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-05-05 07:03:36 +0000 |
commit | a81c08d0672965144d8ccd356cd83f9f7e834a3b (patch) | |
tree | b2126ca0dee11bf0d5e5fe5a2a12f091eacee155 /src/gui/chat.h | |
parent | a1f770ce0371272bb0bbc8b02b0b50b1fc62ae89 (diff) | |
download | mana-a81c08d0672965144d8ccd356cd83f9f7e834a3b.tar.gz mana-a81c08d0672965144d8ccd356cd83f9f7e834a3b.tar.bz2 mana-a81c08d0672965144d8ccd356cd83f9f7e834a3b.tar.xz mana-a81c08d0672965144d8ccd356cd83f9f7e834a3b.zip |
Only update the size of chat window widgets when it is resized.
Diffstat (limited to 'src/gui/chat.h')
-rw-r--r-- | src/gui/chat.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gui/chat.h b/src/gui/chat.h index 08fed0be..26e30374 100644 --- a/src/gui/chat.h +++ b/src/gui/chat.h @@ -105,7 +105,8 @@ struct CHATSKILL * * \ingroup Interface */ -class ChatWindow : public Window, public gcn::ActionListener, +class ChatWindow : public Window, + public gcn::ActionListener, public gcn::KeyListener { public: @@ -120,9 +121,10 @@ class ChatWindow : public Window, public gcn::ActionListener, ~ChatWindow(); /** - * Logic (updates components' size) + * Called when the widget changes size. Used for adapting the size of + * the tabbed area. */ - void logic(); + void widgetResized(const gcn::Event &event); /* * Adds a line of text to our message list. Parameters: @@ -188,8 +190,10 @@ class ChatWindow : public Window, public gcn::ActionListener, /** Called to remove the channel from the channel manager */ void removeChannel(short channelId); + void removeChannel(const std::string &channelName); + void removeChannel(Channel *channel); |