diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-04-16 08:39:59 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-04-16 08:39:59 +0000 |
commit | fe02ca9dcaa593d361f0acebcfb514997dc4ca9e (patch) | |
tree | 3dccd5a76a231f2f7a6261732f144c70e850afb7 /src/gui/textbox.cpp | |
parent | 2aae7dcba5b240674a76e0d85dbf64cede1d478b (diff) | |
download | mana-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.cpp | 9 |
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()) |