summaryrefslogtreecommitdiff
path: root/UpdateManager/fakegconf.py
diff options
context:
space:
mode:
Diffstat (limited to 'UpdateManager/fakegconf.py')
-rw-r--r--UpdateManager/fakegconf.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/UpdateManager/fakegconf.py b/UpdateManager/fakegconf.py
new file mode 100644
index 00000000..fd465fa3
--- /dev/null
+++ b/UpdateManager/fakegconf.py
@@ -0,0 +1,24 @@
+# This is a class which contains stubs for the gconf methods
+# used in Update Manager. When gconf is unavailable it will
+# still work but not retain the user settings.
+
+class FakeGconf:
+
+ def get_bool(self, key):
+ return False
+
+ def set_bool(self, key,value):
+ pass
+
+ def get_pair(self, key, ta = None, tb = None):
+ return [300,300]
+
+ def set_pair(self, key, ta, tb, a, b):
+ pass
+
+VALUE_INT = ""
+
+def client_get_default():
+ return FakeGconf()
+
+