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/scrollarea.h | |
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/scrollarea.h')
-rw-r--r-- | src/gui/scrollarea.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gui/scrollarea.h b/src/gui/scrollarea.h index dd1f946d..be361f68 100644 --- a/src/gui/scrollarea.h +++ b/src/gui/scrollarea.h @@ -40,12 +40,12 @@ class ScrollArea : public gcn::ScrollArea /** * Constructor. */ - ScrollArea(bool gc=true); + ScrollArea(bool gc = true); /** * Constructor. */ - ScrollArea(gcn::Widget *content, bool gc=true); + ScrollArea(gcn::Widget *content, bool gc = true); /** * Destructor. @@ -71,14 +71,12 @@ class ScrollArea : public gcn::ScrollArea /** * Sets whether the widget should draw its background or not. */ - void - setOpaque(bool opaque); + void setOpaque(bool opaque); /** * Returns whether the widget draws its background or not. */ - bool - isOpaque() { return mOpaque; } + bool isOpaque() const { return mOpaque; } protected: enum BUTTON_DIR { |