summaryrefslogtreecommitdiff
path: root/kberylsettings/beryl.py
diff options
context:
space:
mode:
authornatural <natural>2006-12-19 13:03:14 +0000
committernatural <natural>2006-12-19 13:03:14 +0000
commite87833f32ea631dab7391484f0f89bedf669b80c (patch)
tree2a66917ce2bad8f7d6619ebbccf0d37598f12f22 /kberylsettings/beryl.py
parent99b44818d60794aae11dca5f67722ab32c98f137 (diff)
downloadkberylsettings-e87833f32ea631dab7391484f0f89bedf669b80c.tar.gz
kberylsettings-e87833f32ea631dab7391484f0f89bedf669b80c.tar.bz2
Support for basic setting saves. Other refactorings and fixes.
Diffstat (limited to 'kberylsettings/beryl.py')
-rw-r--r--kberylsettings/beryl.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/kberylsettings/beryl.py b/kberylsettings/beryl.py
index ba8a791..8814b68 100644
--- a/kberylsettings/beryl.py
+++ b/kberylsettings/beryl.py
@@ -83,13 +83,18 @@ class Context(QObject):
general = property(getGeneral)
def write(self):
- """ saves the beryl context and messages the extension to
- reload the new settings.
+ """ saves the beryl context
@return None
"""
self.emit(Signals.statusMessage, ('Saving Beryl settings....', ))
self.context.write()
+
+ def reload(self):
+ """ messages the extension to reload the new settings
+
+ @return None
+ """
berylsettings.send_reload()
self.emit(Signals.statusMessage, ('Beryl settings reloaded.', ))
@@ -205,6 +210,9 @@ class Setting:
def __getattr__(self, value):
return getattr(self.setting, value)
+ def set(self, value):
+ self.setting.Value = value
+
def icon(cls, value, size):
name = cls.iconNameMap.get(str(value), cls.iconNameMap['Bool'])
return icon(name, size=size)