From 024dd21c69c36f98dd3799d72ba7ec048b60eed0 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sat, 22 Feb 2003 19:08:28 +0000 Subject: fixed bug in bullet type --- src/FbTk/MenuTheme.cc | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/FbTk/MenuTheme.cc b/src/FbTk/MenuTheme.cc index fa654f7..b130829 100644 --- a/src/FbTk/MenuTheme.cc +++ b/src/FbTk/MenuTheme.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: MenuTheme.cc,v 1.4 2003/02/15 01:49:43 fluxgen Exp $ +// $Id: MenuTheme.cc,v 1.5 2003/02/22 19:08:28 fluxgen Exp $ #include "MenuTheme.hh" @@ -29,7 +29,6 @@ #include "App.hh" //TODO change this #include "../StringUtil.hh" - #include namespace FbTk { @@ -88,7 +87,7 @@ void MenuTheme::reconfigTheme() { XGCValues gcv; unsigned long gc_value_mask = GCForeground; - + gcv.foreground = t_text->pixel(); XChangeGC(m_display, t_text_gc, @@ -123,13 +122,16 @@ void ThemeItem::setDefaultValue() { template <> void ThemeItem::setFromString(const char *str) { + // do nothing - if (StringUtil::strcasestr(str, "EMPTY") == 0) + if (StringUtil::strcasestr(str, "empty") != 0) m_value = MenuTheme::EMPTY; - else if (StringUtil::strcasestr(str, "SQUARE") == 0) + else if (StringUtil::strcasestr(str, "square") != 0) m_value = MenuTheme::SQUARE; - else if (StringUtil::strcasestr(str, "TRIANGLE") == 0) + else if (StringUtil::strcasestr(str, "triangle") != 0) m_value = MenuTheme::TRIANGLE; + else if (StringUtil::strcasestr(str, "diamond") != 0) + m_value = MenuTheme::DIAMOND; else setDefaultValue(); } -- cgit v0.11.2