From fe02ca9dcaa593d361f0acebcfb514997dc4ca9e Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Wed, 16 Apr 2008 08:39:59 +0000 Subject: 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()). --- src/gui/scrollarea.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/gui/scrollarea.h') 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 { -- cgit v1.2.3-60-g2f50