diff options
author | dtk <dtk@gmx.de> | 2012-01-19 23:19:40 +0100 |
---|---|---|
committer | dtk <dtk@gmx.de> | 2012-01-28 17:48:59 +0100 |
commit | e578364552631d39758ec879aea3e5a52ace69ac (patch) | |
tree | 3f30f28121bfc75e3cc97040283a2a3b91491f36 /alot/settings.py | |
parent | 24e4bbe592213e90d76d37cc703d34a93edbbda1 (diff) |
Rename `_get_themeing_option()`
Remove superfluous 'e' to make it into `_get_theming_option()` to increase
consistency with other code.
Diffstat (limited to 'alot/settings.py')
-rw-r--r-- | alot/settings.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/alot/settings.py b/alot/settings.py index 78dd12d7..d88b5be0 100644 --- a/alot/settings.py +++ b/alot/settings.py @@ -104,11 +104,11 @@ class AlotConfigParser(FallbackConfigParser): names = set([s[:-3] for s in names]) p = list() for attr in names: - nf = self._get_themeing_option('16c-theme', attr + '_fg') - nb = self._get_themeing_option('16c-theme', attr + '_bg') - m = self._get_themeing_option('1c-theme', attr) - hf = self._get_themeing_option('256c-theme', attr + '_fg') - hb = self._get_themeing_option('256c-theme', attr + '_bg') + nf = self._get_theming_option('16c-theme', attr + '_fg') + nb = self._get_theming_option('16c-theme', attr + '_bg') + m = self._get_theming_option('1c-theme', attr) + hf = self._get_theming_option('256c-theme', attr + '_fg') + hb = self._get_theming_option('256c-theme', attr + '_bg') p.append((attr, nf, nb, m, hf, hb)) if attr.startswith('tag_') and attr + '_focus' not in names: nb = self.get('16c-theme', 'tag_focus_bg', @@ -118,7 +118,7 @@ class AlotConfigParser(FallbackConfigParser): p.append((attr + '_focus', nf, nb, m, hf, hb)) return p - def _get_themeing_option(self, section, option, default='default'): + def _get_theming_option(self, section, option, default='default'): """ Retrieve the value of the given option from the given section of the config file. @@ -153,7 +153,7 @@ class AlotConfigParser(FallbackConfigParser): if has_parent_option: parent_option = '{0}_{1}'.format(has_parent_option.group(1), has_parent_option.group(2)) - result = self._get_themeing_option(section, parent_option) + result = self._get_theming_option(section, parent_option) else: result = default return result |