[gsettings-desktop-schemas] Add schemas for Thumbnail Cache
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gsettings-desktop-schemas] Add schemas for Thumbnail Cache
- Date: Thu, 14 Oct 2010 13:20:08 +0000 (UTC)
commit 31ff7e30408aa1d36cb98d01588aaf5461c88637
Author: Bastien Nocera <hadess hadess net>
Date: Thu Oct 14 14:17:05 2010 +0100
Add schemas for Thumbnail Cache
schemas/Makefile.am | 3 ++-
schemas/gsettings-desktop-schemas.convert | 4 ++++
.../org.gnome.desktop.thumbnail-cache.gschema.xml | 13 +++++++++++++
3 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/schemas/Makefile.am b/schemas/Makefile.am
index 83bab6a..5ba62fb 100644
--- a/schemas/Makefile.am
+++ b/schemas/Makefile.am
@@ -3,7 +3,8 @@ desktop_gschemas = \
org.gnome.desktop.interface.gschema.xml \
org.gnome.desktop.lockdown.gschema.xml \
org.gnome.system.proxy.gschema.xml \
- org.gnome.desktop.sound.gschema.xml
+ org.gnome.desktop.sound.gschema.xml \
+ org.gnome.desktop.thumbnail-cache.gschema.xml
desktop_gschemas_in = \
org.gnome.desktop.background.gschema.xml.in
diff --git a/schemas/gsettings-desktop-schemas.convert b/schemas/gsettings-desktop-schemas.convert
index b2d6647..886d167 100644
--- a/schemas/gsettings-desktop-schemas.convert
+++ b/schemas/gsettings-desktop-schemas.convert
@@ -99,3 +99,7 @@ port = /system/proxy/ftp_port
host = /system/proxy/socks_host
port = /system/proxy/socks_port
+# From org.gnome.desktop.thumbnail-cache.gschema.xml
+[org.gnome.desktop.thumbnail-cache]
+maximum-age = /desktop/gnome/thumbnail_cache/maximum_age
+maximum-size = /desktop/gnome/thumbnail_cache/maximum_size
diff --git a/schemas/org.gnome.desktop.thumbnail-cache.gschema.xml b/schemas/org.gnome.desktop.thumbnail-cache.gschema.xml
new file mode 100644
index 0000000..737d390
--- /dev/null
+++ b/schemas/org.gnome.desktop.thumbnail-cache.gschema.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<schemalist>
+ <schema id="org.gnome.desktop.thumbnail-cache" path="/desktop/gnome/thumbnail-cache/">
+ <key name="maximum-age" type="i">
+ <default>180</default>
+ <description>Maximum age for thumbnails in the cache, in days. Set to -1 to disable cleaning.</description>
+ </key>
+ <key name="maximum-size" type="i">
+ <default>512</default>
+ <description>Maximum size of the thumbnail cache, in megabytes. Set to -1 to disable cleaning.</description>
+ </key>
+ </schema>
+</schemalist>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]