]> Dogcows Code - chaz/openbox/blobdiff - util/epist/config.cc
adding buttons for styles
[chaz/openbox] / util / epist / config.cc
index 3e99e135b0754b6f18a462666b849696fc56a525..461778e5f952958b8eb0ada2689f29729364a7ec 100644 (file)
 // 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;
@@ -77,7 +81,7 @@ bool Config::getValue(Config::BoolType type, bool &ret) const
   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;
     }
   }
@@ -93,6 +97,7 @@ void Config::addOption(const std::string &name, const std::string &value)
   }
   bool_options[] = {
     { "stackedcycling", Config::stackedCycling },
+    { "stackedcyclingraise", Config::stackedCyclingRaise },
     { "", NUM_BOOL_TYPES }
   };
 
@@ -123,7 +128,8 @@ void Config::addOption(const std::string &name, const std::string &value)
 
       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;
This page took 0.021324 seconds and 4 git commands to generate.