// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
+#ifdef HAVE_CONFIG_H
+# include "../../config.h"
+#endif // HAVE_CONFIG_H
+
#include "config.hh"
using std::string;
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;
}
}
}
bool_options[] = {
{ "stackedcycling", Config::stackedCycling },
+ { "stackedcyclingraise", Config::stackedCyclingRaise },
{ "", NUM_BOOL_TYPES }
};
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;