[gnome-settings-daemon] xsettings: Export recent files max age xsetting
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] xsettings: Export recent files max age xsetting
- Date: Mon, 3 Dec 2012 09:35:05 +0000 (UTC)
commit e44364d6d468a0a5639825e5576a63ea14659926
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Nov 25 15:53:00 2012 -0500
xsettings: Export recent files max age xsetting
This is part of implementing desktop-wide policy for retention
of history.
https://bugzilla.gnome.org/show_bug.cgi?id=689050
plugins/xsettings/gsd-xsettings-manager.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/plugins/xsettings/gsd-xsettings-manager.c b/plugins/xsettings/gsd-xsettings-manager.c
index 1bb76e3..aee9ca5 100644
--- a/plugins/xsettings/gsd-xsettings-manager.c
+++ b/plugins/xsettings/gsd-xsettings-manager.c
@@ -50,6 +50,7 @@
#define MOUSE_SETTINGS_SCHEMA "org.gnome.settings-daemon.peripherals.mouse"
#define INTERFACE_SETTINGS_SCHEMA "org.gnome.desktop.interface"
#define SOUND_SETTINGS_SCHEMA "org.gnome.desktop.sound"
+#define PRIVACY_SETTINGS_SCHEMA "org.gnome.desktop.privacy"
#define XSETTINGS_PLUGIN_SCHEMA "org.gnome.settings-daemon.plugins.xsettings"
#define XSETTINGS_OVERRIDE_KEY "overrides"
@@ -363,7 +364,9 @@ static TranslationEntry translations [] = {
{ "org.gnome.desktop.sound", "theme-name", "Net/SoundThemeName", translate_string_string },
{ "org.gnome.desktop.sound", "event-sounds", "Net/EnableEventSounds" , translate_bool_int },
- { "org.gnome.desktop.sound", "input-feedback-sounds", "Net/EnableInputFeedbackSounds", translate_bool_int }
+ { "org.gnome.desktop.sound", "input-feedback-sounds", "Net/EnableInputFeedbackSounds", translate_bool_int },
+
+ { "org.gnome.desktop.privacy", "recent-files-max-age", "Gtk/RecentFilesMaxAge", translate_int_int }
};
static gboolean
@@ -894,6 +897,8 @@ gnome_xsettings_manager_start (GnomeXSettingsManager *manager,
INTERFACE_SETTINGS_SCHEMA, g_settings_new (INTERFACE_SETTINGS_SCHEMA));
g_hash_table_insert (manager->priv->settings,
SOUND_SETTINGS_SCHEMA, g_settings_new (SOUND_SETTINGS_SCHEMA));
+ g_hash_table_insert (manager->priv->settings,
+ PRIVACY_SETTINGS_SCHEMA, g_settings_new (PRIVACY_SETTINGS_SCHEMA));
for (i = 0; i < G_N_ELEMENTS (translations); i++) {
GVariant *val;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]