summaryrefslogtreecommitdiff
path: root/src/gui/chat.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-04-09 09:00:06 -0600
committerJared Adams <jaxad0127@gmail.com>2009-04-09 09:00:06 -0600
commit31afa067800d048985deb9ebe45c9729dfd39a00 (patch)
treec6d1528c9c4dbba07bd0dddd5144ec56706fb0d1 /src/gui/chat.cpp
parentad290061e608a232ed04d587c7b742217f552898 (diff)
downloadmana-31afa067800d048985deb9ebe45c9729dfd39a00.tar.gz
mana-31afa067800d048985deb9ebe45c9729dfd39a00.tar.bz2
mana-31afa067800d048985deb9ebe45c9729dfd39a00.tar.xz
mana-31afa067800d048985deb9ebe45c9729dfd39a00.zip
Add a popup menu item to add Being name to chat
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r--src/gui/chat.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index 86e5865a..b7a57da5 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -365,7 +365,7 @@ void ChatWindow::keyPressed(gcn::KeyEvent &event)
}
}
-void ChatWindow::setInputText(std::string input_str)
+void ChatWindow::addInputText(std::string input_str)
{
mChatInput->setText(mChatInput->getText() + input_str + " ");
requestChatFocus();
@@ -375,8 +375,7 @@ void ChatWindow::addItemText(const std::string &item)
{
std::ostringstream text;
text << "[" << item << "] ";
- mChatInput->setText(mChatInput->getText() + text.str());
- requestChatFocus();
+ addInputText(text.str());
}
void ChatWindow::setVisible(bool isVisible)