GNOME Bugzilla – Bug 689049
privacy: Add recent-files related settings
Last modified: 2012-12-03 09:28:14 UTC
These settings are needed to implement the privacy panel design.
Created attachment 229839 [details] [review] privacy: Add recent-files related settings
Review of attachment 229839 [details] [review]: ::: schemas/org.gnome.desktop.privacy.gschema.xml.in.in @@ +29,3 @@ + <default>true</default> + <_summary>Whether to remember recently used files</_summary> + <_description>If FALSE, applications will not remember recently Why "keep"? remember-recent-files. @@ +32,3 @@ + used files.</_description> + </key> + <key name="retain-recent-files-for" type="i"> recent-files-max-age?
Created attachment 230051 [details] [review] privacy: Add recent-files related settings These settings are needed to implement the privacy panel design.
Review of attachment 230051 [details] [review]: ::: schemas/org.gnome.desktop.privacy.gschema.xml.in.in @@ +36,3 @@ + <_summary>Number of days to remember recently used files for</_summary> + <_description>Recently used files will be remembered for this many days. + Set to -1 to retain unlimited history.</_description> How would "max-age" == 0 behave? The same as "remember-recent-files" = FALSE?
Review of attachment 230051 [details] [review]: ::: schemas/org.gnome.desktop.privacy.gschema.xml.in.in @@ +36,3 @@ + <_summary>Number of days to remember recently used files for</_summary> + <_description>Recently used files will be remembered for this many days. + Set to -1 to retain unlimited history.</_description> I would rather have max-age be a uint, and have "0" be "unlimited".
That means you have to do nontrivial translation gsetting -> xsetting in gsd. We can certainly do that. The current definition is lifted straight out of GtkSettings:gtk-recent-files-max-age
GtkSettings:gtk-recent-files-max-age has the behaviour of "0" documented. Make sure it's also in the schemas definition.
Created attachment 230310 [details] [review] privacy: Add recent-files related settings These settings are needed to implement the privacy panel design.
Expanded the documentation to be in sync with whats documented in gtk
Attachment 230310 [details] pushed as 252bce0 - privacy: Add recent-files related settings