summaryrefslogtreecommitdiff
path: root/src/gui/textbox.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2008-04-16 08:39:59 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2008-04-16 08:39:59 +0000
commitfe02ca9dcaa593d361f0acebcfb514997dc4ca9e (patch)
tree3dccd5a76a231f2f7a6261732f144c70e850afb7 /src/gui/textbox.cpp
parent2aae7dcba5b240674a76e0d85dbf64cede1d478b (diff)
downloadMana-fe02ca9dcaa593d361f0acebcfb514997dc4ca9e.tar.gz
Mana-fe02ca9dcaa593d361f0acebcfb514997dc4ca9e.tar.bz2
Mana-fe02ca9dcaa593d361f0acebcfb514997dc4ca9e.tar.xz
Mana-fe02ca9dcaa593d361f0acebcfb514997dc4ca9e.zip
Restored the text wrapping in TextBox, since it was based on overriding a
method that is no longer virtual in Guichan 0.8.0 (gcn::TextBox::setText()).
Diffstat (limited to 'src/gui/textbox.cpp')
-rw-r--r--src/gui/textbox.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/gui/textbox.cpp b/src/gui/textbox.cpp
index 84c8ad4b..8d16dc46 100644
--- a/src/gui/textbox.cpp
+++ b/src/gui/textbox.cpp
@@ -35,14 +35,7 @@ TextBox::TextBox():
setFrameSize(0);
}
-TextBox::TextBox(const std::string& text):
- gcn::TextBox(text)
-{
- setOpaque(false);
- setFrameSize(0);
-}
-
-void TextBox::setText(const std::string &text)
+void TextBox::setTextWrapped(const std::string &text)
{
// Make sure parent scroll area sets width of this widget
if (getParent())