all repos — fluxbox @ 0d7f757c2c14fcab9932b2749c734ccfd433f735

custom fork of the fluxbox windowmanager

fixes missing header to avoid missing declarations (mipspro)
akir akir
commit

0d7f757c2c14fcab9932b2749c734ccfd433f735

parent

d51d01cc49d7d725ae32b169f81376fa5b9e702e

1 files changed, 11 insertions(+), 9 deletions(-)

jump to
M src/FbTk/ThemeItems.hhsrc/FbTk/ThemeItems.hh

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// 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 "Texture.hh"

#include "Font.hh" #include "PixmapWithMask.hh" #include "Image.hh" +#include "StringUtil.hh" #include <string> #ifdef HAVE_CSTDIO

@@ -49,19 +50,19 @@ template <>

void FbTk::ThemeItem<std::string>::load(const std::string *name, const std::string *altname) { } template <> -void FbTk::ThemeItem<std::string>::setDefaultValue() { - *(*this) = ""; +void FbTk::ThemeItem<std::string>::setDefaultValue() { + *(*this) = ""; } template <> -void FbTk::ThemeItem<std::string>::setFromString(const char *str) { - *(*this) = (str ? str : ""); +void FbTk::ThemeItem<std::string>::setFromString(const char *str) { + *(*this) = (str ? str : ""); } template <> void FbTk::ThemeItem<int>::load(const std::string *name, const std::string *altname) { } -template <> +template<> void FbTk::ThemeItem<int>::setDefaultValue() { *(*this) = 0; }

@@ -102,7 +103,7 @@ cerr<<"FbTk::Theme: Setting default value"<<endl;

} setDefaultValue(); } - + } // do nothing

@@ -197,13 +198,14 @@ StringUtil::removeTrailingWhitespace(filename);

std::auto_ptr<FbTk::PixmapWithMask> 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<FbTk::Color>::setDefaultValue() {