sugarlabs / turtleart-activity

A block-based Logo programming environment
MIT License
18 stars 54 forks source link

Port from GConf to Gio.Settings #52

Closed walterbender closed 6 years ago

walterbender commented 6 years ago

Turtle Art used GConf to read and store settings. GConf is no longer available.

For the activity-specific settings, use a local Gio.SettingsSchemaSource, compile the schema on first start, and store the changed value in the Gio.Settings.

The version has been bumped up to 217.

quozl commented 6 years ago

On systems where the activity bundle path is the read-only /usr/share/sugar/activities the schema compile will fail. Use get_activity_root instead of self.bundle_path. See example in Browse.

quozl commented 6 years ago

Reviewed to 440c276.

quozl commented 6 years ago

Fixes https://github.com/sugarlabs/turtleart-activity/issues/51.