fixed bug in bullet type
This commit is contained in:
parent
6cafb55bb9
commit
024dd21c69
1 changed files with 8 additions and 6 deletions
|
@ -19,7 +19,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// 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"
|
#include "MenuTheme.hh"
|
||||||
|
|
||||||
|
@ -29,7 +29,6 @@
|
||||||
#include "App.hh"
|
#include "App.hh"
|
||||||
//TODO change this
|
//TODO change this
|
||||||
#include "../StringUtil.hh"
|
#include "../StringUtil.hh"
|
||||||
|
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
|
||||||
namespace FbTk {
|
namespace FbTk {
|
||||||
|
@ -123,13 +122,16 @@ void ThemeItem<MenuTheme::BulletType>::setDefaultValue() {
|
||||||
|
|
||||||
template <>
|
template <>
|
||||||
void ThemeItem<MenuTheme::BulletType>::setFromString(const char *str) {
|
void ThemeItem<MenuTheme::BulletType>::setFromString(const char *str) {
|
||||||
|
|
||||||
// do nothing
|
// do nothing
|
||||||
if (StringUtil::strcasestr(str, "EMPTY") == 0)
|
if (StringUtil::strcasestr(str, "empty") != 0)
|
||||||
m_value = MenuTheme::EMPTY;
|
m_value = MenuTheme::EMPTY;
|
||||||
else if (StringUtil::strcasestr(str, "SQUARE") == 0)
|
else if (StringUtil::strcasestr(str, "square") != 0)
|
||||||
m_value = MenuTheme::SQUARE;
|
m_value = MenuTheme::SQUARE;
|
||||||
else if (StringUtil::strcasestr(str, "TRIANGLE") == 0)
|
else if (StringUtil::strcasestr(str, "triangle") != 0)
|
||||||
m_value = MenuTheme::TRIANGLE;
|
m_value = MenuTheme::TRIANGLE;
|
||||||
|
else if (StringUtil::strcasestr(str, "diamond") != 0)
|
||||||
|
m_value = MenuTheme::DIAMOND;
|
||||||
else
|
else
|
||||||
setDefaultValue();
|
setDefaultValue();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue