Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2010-12-13 18:17:41 (GMT)
committer Simon Schampijer <simon@schampijer.de>2010-12-13 18:17:41 (GMT)
commit30c82c588b9740681cf85cc696a43c611db04c5c (patch)
tree54fc15717a19cbbc61c3f7d829b05002acd9b6d1 /data
parent62cb0e9595fbfa6e1ef7d1edfb968fef0ea253b4 (diff)
Protected Activities Support #10415
Backport from SL #2087 (Martin Abente) Activities deletion causes troubles during classes. Teachers from Paraguay and Uruguay asked for a mechanism to protect activities from being easily deleted. This patch provides a mechanism that uses a gconf value to determine which activities will not contain the erase option at the list view palette. The gconf value contains a list of activities bundle indentifiers.
Diffstat (limited to 'data')
-rw-r--r--data/sugar.schemas.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/data/sugar.schemas.in b/data/sugar.schemas.in
index 454375a..cf234a1 100644
--- a/data/sugar.schemas.in
+++ b/data/sugar.schemas.in
@@ -285,5 +285,19 @@
</locale>
</schema>
+ <schema>
+ <key>/schemas/desktop/sugar/protected_activities</key>
+ <applyto>/desktop/sugar/protected_activities</applyto>
+ <owner>sugar</owner>
+ <type>list</type>
+ <list_type>string</list_type>
+ <default>[]</default>
+ <locale name="C">
+ <short>Bundle IDs of protected activities</short>
+ <long>Users will not be allowed to erase these
+ activities through the list view.</long>
+ </locale>
+ </schema>
+
</schemalist>
</gconfschemafile>