From 0d7f757c2c14fcab9932b2749c734ccfd433f735 Mon Sep 17 00:00:00 2001 From: akir Date: Thu, 21 Oct 2004 10:29:49 +0000 Subject: fixes missing header to avoid missing declarations (mipspro) --- src/FbTk/ThemeItems.hh | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/FbTk/ThemeItems.hh b/src/FbTk/ThemeItems.hh index 259ccc7..60efe2f 100644 --- a/src/FbTk/ThemeItems.hh +++ b/src/FbTk/ThemeItems.hh @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: ThemeItems.hh,v 1.8 2004/08/31 15:26:39 rathnor Exp $ +// $Id: ThemeItems.hh,v 1.9 2004/10/21 10:29:49 akir Exp $ /// @file implements common theme items @@ -32,6 +32,7 @@ #include "Font.hh" #include "PixmapWithMask.hh" #include "Image.hh" +#include "StringUtil.hh" #include #ifdef HAVE_CSTDIO @@ -49,19 +50,19 @@ template <> void FbTk::ThemeItem::load(const std::string *name, const std::string *altname) { } template <> -void FbTk::ThemeItem::setDefaultValue() { - *(*this) = ""; +void FbTk::ThemeItem::setDefaultValue() { + *(*this) = ""; } template <> -void FbTk::ThemeItem::setFromString(const char *str) { - *(*this) = (str ? str : ""); +void FbTk::ThemeItem::setFromString(const char *str) { + *(*this) = (str ? str : ""); } template <> void FbTk::ThemeItem::load(const std::string *name, const std::string *altname) { } -template <> +template<> void FbTk::ThemeItem::setDefaultValue() { *(*this) = 0; } @@ -102,7 +103,7 @@ void ThemeItem::setFromString(const char *str) { } setDefaultValue(); } - + } // do nothing @@ -197,14 +198,15 @@ setFromString(const char *str) { std::auto_ptr pm(Image::load(filename, m_tm.screenNum())); if (pm.get() == 0) - setDefaultValue(); + setDefaultValue(); else { (*this)->pixmap() = pm->pixmap().release(); (*this)->mask() = pm->mask().release(); } - } + } } + template <> void ThemeItem::setDefaultValue() { m_value.setFromString("white", m_tm.screenNum()); -- cgit v0.11.2