forked from photron/msys_setup
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-gconf.py
More file actions
70 lines (47 loc) · 1.21 KB
/
python-gconf.py
File metadata and controls
70 lines (47 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
CLIENT_PRELOAD_NONE = 1
VALUE_STRING = 2
class Value:
def get_int(self):
return 1
class Client:
def add_dir(self, dir, flags):
pass
def all_dirs(self, key):
return []
def notify_add(self, path, callback, userdata=None):
pass
def get(self, path):
return Value()
def get_bool(self, path):
if path.endswith("/system-tray"):
return False
else:
return False
def set_bool(self, path, value):
pass
def get_int(self, path):
if path.endswith("/stats/update-interval"):
return 5
else:
return 1
def set_int(self, path, value):
pass
def get_string(self, path):
return ""
def set_string(self, path, value):
pass
def get_list(self, path, item_type):
if path.endswith("/connections/uris"):
return ["qemu+tls://sbox/system"]
else:
return None
def set_list(self, path, item_type, value):
pass
def recursive_unset(self, key, value):
pass
def suggest_sync(self):
pass
def client_get_default():
return Client()
def escape_key(uri, uri_len):
return uri