all repos — openbox @ 572acce581f4b8799db661ed7ab0007de0393a09

openbox fork - make it a bit more like ryudo

Fixed a couple of glitches, added on/off values for boolean
Marius Nita marius@cs.pdx.edu
commit

572acce581f4b8799db661ed7ab0007de0393a09

parent

ba1a71566b7e793409f0f32ad7b9589e8b8e8c70

1 files changed, 3 insertions(+), 2 deletions(-)

jump to
M util/epist/config.ccutil/epist/config.cc

@@ -77,7 +77,7 @@ {

BoolItemList::const_iterator it = bool_items.begin(), end = bool_items.end(); for (; it != end; ++it) { if ((*it)->type == type) { - ret = (*it)->type; + ret = (*it)->value; return true; } }

@@ -123,7 +123,8 @@ const char *tmp = value.c_str();

item->type = bool_options[i].type; - if (strcasecmp(tmp, "true") == 0 || strcasecmp(tmp, "1")) + if (strcasecmp(tmp, "true") == 0 || strcasecmp(tmp, "1") == 0 || + strcasecmp(tmp, "on") == 0) item->value = true; else item->value = false;