summaryrefslogtreecommitdiff
path: root/src/gui/chat.cpp
diff options
context:
space:
mode:
authorMateusz Kaduk <mateusz.kaduk@gmail.com>2005-06-30 20:45:43 +0000
committerMateusz Kaduk <mateusz.kaduk@gmail.com>2005-06-30 20:45:43 +0000
commitaaff5572f054045ecd4dd94ccdc2caac71132ad4 (patch)
treeb67e8b6436807072893357b55c12e01aacdac591 /src/gui/chat.cpp
parent5cd5f1dda32bdd812abbb7f4a72042575f153d4b (diff)
downloadmana-aaff5572f054045ecd4dd94ccdc2caac71132ad4.tar.gz
mana-aaff5572f054045ecd4dd94ccdc2caac71132ad4.tar.bz2
mana-aaff5572f054045ecd4dd94ccdc2caac71132ad4.tar.xz
mana-aaff5572f054045ecd4dd94ccdc2caac71132ad4.zip
Improved buddylist, added talk
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r--src/gui/chat.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index 8a11969a..c02f5160 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -327,3 +327,9 @@ void ChatWindow::keyPress(const gcn::Key &key)
chatInput->setCaretPosition(chatInput->getText().length());
}
}
+
+void ChatWindow::setInputText(std::string input_str)
+{
+ chatInput->setText(input_str + " ");
+ requestChatFocus();
+}