Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Schampijer <simon@laptop.org>2012-09-04 12:44:42 (GMT)
committer Simon Schampijer <simon@laptop.org>2012-09-07 09:14:25 (GMT)
commitb70a1488af339c119a130f64fada1509757f82e1 (patch)
treee1cb22c5d6fdc63a130ab45959d9efc8a4b6f08e /src
parent094a72b5eb2d69edf4640e26456e23fbb24230ce (diff)
Protected Activities: workaround gconf_client_get_list not (yet) introspectable
client.get_list() is not introspectable, as the elements in the list returned do not have a fixed type. However, we can use the more generic .get() and the GConfValue methods to read the list. Patch by Daniel: http://dev.laptop.org/git/users/dsd/sugar/commit/?h=gtk3port&id=5ebdc335a6ed33aa019093db27b25a874221fe4d Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-by: Manuel QuiƱones <manuq@laptop.org>
Diffstat (limited to 'src')
-rw-r--r--src/jarabe/model/bundleregistry.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/jarabe/model/bundleregistry.py b/src/jarabe/model/bundleregistry.py
index 4fd03a1..e441122 100644
--- a/src/jarabe/model/bundleregistry.py
+++ b/src/jarabe/model/bundleregistry.py
@@ -73,9 +73,14 @@ class BundleRegistry(GObject.GObject):
self._favorite_bundles = {}
client = GConf.Client.get_default()
- self._protected_activities = client.get_list(
- '/desktop/sugar/protected_activities',
- GConf.ValueType.STRING)
+ self._protected_activities = []
+
+ # FIXME, gconf_client_get_list not introspectable #681433
+ protected_activities = client.get(
+ '/desktop/sugar/protected_activities')
+ for gval in protected_activities.get_list():
+ activity_id = gval.get_string()
+ self._protected_activities.append(activity_id)
if self._protected_activities is None:
self._protected_activities = []