]> Dogcows Code - chaz/openbox/commitdiff
Fixed goof in config interface. All the functions are now named getValue(), since...
authorMarius Nita <marius@cs.pdx.edu>
Mon, 26 Aug 2002 15:00:14 +0000 (15:00 +0000)
committerMarius Nita <marius@cs.pdx.edu>
Mon, 26 Aug 2002 15:00:14 +0000 (15:00 +0000)
util/epist/config.cc
util/epist/config.hh
util/epist/keytree.cc
util/epist/screen.cc

index db9ecdddcf09aa174c8eff9ad4300891b4d0ddfc..3e99e135b0754b6f18a462666b849696fc56a525 100644 (file)
@@ -46,7 +46,7 @@ Config::~Config()
 }
 
 
-bool Config::getStringValue(Config::StringType type, string &ret) const
+bool Config::getValue(Config::StringType type, string &ret) const
 {
   StringItemList::const_iterator it = string_items.begin(), end = string_items.end();
   for (; it != end; ++it) {
@@ -59,7 +59,7 @@ bool Config::getStringValue(Config::StringType type, string &ret) const
 }
 
 
-bool Config::getNumberValue(Config::NumberType type, int &ret) const
+bool Config::getValue(Config::NumberType type, int &ret) const
 {
   NumberItemList::const_iterator it = number_items.begin(), end = number_items.end();
   for (; it != end; ++it) {
@@ -72,7 +72,7 @@ bool Config::getNumberValue(Config::NumberType type, int &ret) const
 }
 
 
-bool Config::getBoolValue(Config::BoolType type, bool &ret) const
+bool Config::getValue(Config::BoolType type, bool &ret) const
 {
   BoolItemList::const_iterator it = bool_items.begin(), end = bool_items.end();
   for (; it != end; ++it) {
index 0cb2a1c048d22425c4f0484f5e5c534e1695ffbd..2c2957470e075fa18f3470fb9b35fadbe7f45824 100644 (file)
@@ -63,9 +63,9 @@ public:
   Config();
   ~Config();
 
-  bool getBoolValue(BoolType, bool &) const;
-  bool getStringValue(StringType, std::string &) const;
-  bool getNumberValue(NumberType, int &) const;
+  bool getValue(BoolType, bool &) const;
+  bool getValue(StringType, std::string &) const;
+  bool getValue(NumberType, int &) const;
 
   void addOption(const std::string &, const std::string &);
 };
index 45b2fb53fce08352487b458a438c55f848f1ce4e..30efa1be2ecc1a4f5ae6785a0a9f329aa1e7ddb9 100644 (file)
@@ -222,7 +222,7 @@ void keytree::initialize(void)
 {
   int tval = 0;
 
-  _epist->getConfig()->getNumberValue(Config::chainTimeout, tval);
+  _epist->getConfig()->getValue(Config::chainTimeout, tval);
   _timer = new BTimer(_epist, this);
 
   if (tval <= 0)
index de5c29c277d34b4a58d7c72ea51e16cf51710fca..edaeb8f8bf15a435af33afad0bf44323349e83ec 100644 (file)
@@ -64,7 +64,7 @@ screen::screen(epist *epist, int number)
   _info = _epist->getScreenInfo(_number);
   _root = _info->getRootWindow();
 
-  _config->getBoolValue(Config::stackedCycling, _stacked_cycling);
+  _config->getValue(Config::stackedCycling, _stacked_cycling);
 
   // find a window manager supporting NETWM, waiting for it to load if we must
   int count = 20;  // try for 20 seconds
@@ -672,7 +672,7 @@ void screen::changeWorkspaceVert(const int num) const {
   int active_desktop = (signed)_active_desktop;
   int wnum = 0;
 
-  _config->getNumberValue(Config::workspaceColumns, width);
+  _config->getValue(Config::workspaceColumns, width);
 
   if (width > num_desktops || width <= 0)
     return;
@@ -704,7 +704,7 @@ void screen::changeWorkspaceHorz(const int num) const {
   int active_desktop = (signed)_active_desktop;
   int wnum = 0;
 
-  _config->getNumberValue(Config::workspaceColumns, width);
+  _config->getValue(Config::workspaceColumns, width);
 
   if (width > num_desktops || width <= 0)
     return;
This page took 0.033103 seconds and 4 git commands to generate.