After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 647579 - gsettings: Implement reset-recursively
gsettings: Implement reset-recursively
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gio
unspecified
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2011-04-12 16:08 UTC by Colin Walters
Modified: 2011-04-13 12:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gsettings: Implement reset-recursively (2.88 KB, patch)
2011-04-12 16:09 UTC, Colin Walters
committed Details | Review

Description Colin Walters 2011-04-12 16:08:59 UTC
Motivation was the ability to:
$ gsettings reset-recursively org.gnome.gnome-panel
Comment 1 Colin Walters 2011-04-12 16:09:01 UTC
Created attachment 185798 [details] [review]
gsettings: Implement reset-recursively
Comment 2 Allison Karlitskaya (desrt) 2011-04-12 16:10:54 UTC
Review of attachment 185798 [details] [review]:

you should use g_settings_delay() so that the entire recursive unset goes through as a single transaction

if you delay a toplevel GSettings object then any child objects you get from it will also be delayed (and will go through when you call apply() on the toplevel)
Comment 3 Colin Walters 2011-04-12 16:14:13 UTC
Attachment 185798 [details] pushed as 3fd9f2e - gsettings: Implement reset-recursively