summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-11-03 03:52:31 -0700
committerStefano Karapetsas <[email protected]>2012-11-03 03:52:31 -0700
commit2256a902e87b28697407c304bcb96ab1aeb3f669 (patch)
tree723fbf30b7e26a55d01463c0f703bab2c8ee0b88 /data
parentce7da346624297407644a1be28f75de0856e1f49 (diff)
parent8d80642d5cd6ce3522029525505abc991087f258 (diff)
downloadmate-screensaver-2256a902e87b28697407c304bcb96ab1aeb3f669.tar.bz2
mate-screensaver-2256a902e87b28697407c304bcb96ab1aeb3f669.tar.xz
Merge pull request #8 from NiceandGently/master
gsettings migration
Diffstat (limited to 'data')
-rw-r--r--data/Makefile.am34
-rw-r--r--data/org.mate.screensaver.gschema.migrate16
-rw-r--r--data/org.mate.screensaver.gschema.xml.in85
3 files changed, 114 insertions, 21 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index 1bae8e9..37e91de 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -9,12 +9,6 @@ man_MANS = \
mate-screensaver-preferences.1 \
$(NULL)
-@INTLTOOL_SCHEMAS_RULE@
-
-schemasdir = @MATECONF_SCHEMA_FILE_DIR@
-schemas_in_files = mate-screensaver.schemas.in
-schemas_DATA = $(schemas_in_files:.schemas.in=.schemas)
-
@INTLTOOL_DESKTOP_RULE@
desktopdir = $(datadir)/applications
@@ -46,8 +40,17 @@ pkgconfig_DATA = mate-screensaver.pc
dbussessionservicedir = $(DBUS_SESSION_SERVICE_DIR)
dbussessionservice_DATA = org.mate.ScreenSaver.service
+@GSETTINGS_RULES@
+@INTLTOOL_XML_NOMERGE_RULE@
+
+gsettings_SCHEMAS = org.mate.screensaver.gschema.xml
+
+migrationdir = $(datadir)/MateConf/gsettings
+dist_migration_DATA = org.mate.screensaver.gschema.migrate
+
+
EXTRA_DIST = \
- $(schemas_in_files) \
+ $(gsettings_SCHEMAS:.xml=.xml.in.in) \
$(desktop_in_files) \
$(directory_in_files) \
$(gtkbuilder_DATA) \
@@ -60,26 +63,15 @@ EXTRA_DIST = \
$(NULL)
DISTCLEANFILES = \
- $(schemas_DATA) \
+ $(gsettings_SCHEMAS)
$(desktop_DATA) \
$(directory_DATA) \
$(NULL)
MAINTAINERCLEANFILES = \
*~ \
- Makefile.in
-
-if MATECONF_SCHEMAS_INSTALL
-# don't do this if we are building in eg. rpm
-install-data-local: $(schemas_DATA)
- if test -z "$(DESTDIR)" ; then \
- for p in $(schemas_DATA) ; do \
- MATECONF_CONFIG_SOURCE=$(MATECONF_SCHEMA_CONFIG_SOURCE) $(MATECONFTOOL) --makefile-install-rule $(top_builddir)/data/$$p ; \
- done \
- fi
-else
-install-data-local:
-endif
+ Makefile.in \
+ $(gsettings_SCHEMAS:.xml=.valid)
install-data-hook:
@system=`uname`; \
diff --git a/data/org.mate.screensaver.gschema.migrate b/data/org.mate.screensaver.gschema.migrate
new file mode 100644
index 0000000..27c7b2d
--- /dev/null
+++ b/data/org.mate.screensaver.gschema.migrate
@@ -0,0 +1,16 @@
+[org.mate.screensaver]
+idle-activation-enabled = /apps/mate-screensaver/idle_activation_enabled
+lock-enabled = /apps/mate-screensaver/lock_enabled
+mode = /apps/mate-screensaver/mode
+themes = /apps/mate-screensaver/themes
+idle-delay = /apps/mate-screensaver/idle_delay
+power-management-delay = /apps/mate-screensaver/power_management_delay
+cycle-delay = /apps/mate-screensaver/cycle_delay
+lock-delay = /apps/mate-screensaver/lock_delay
+embedded-keyboard-enabled = /apps/mate-screensaver/embedded_keyboard_enabled
+embedded-keyboard-command = /apps/mate-screensaver/embedded_keyboard_command
+logout-enabled = /apps/mate-screensaver/logout_enabled
+logout-delay = /apps/mate-screensaver/logout_delay
+logout-command = /apps/mate-screensaver/logout_command
+user-switch-enabled = /apps/mate-screensaver/user_switch_enabled
+status-message-enabled = /apps/mate-screensaver/status_message_enabled
diff --git a/data/org.mate.screensaver.gschema.xml.in b/data/org.mate.screensaver.gschema.xml.in
new file mode 100644
index 0000000..bafc579
--- /dev/null
+++ b/data/org.mate.screensaver.gschema.xml.in
@@ -0,0 +1,85 @@
+<schemalist>
+ <enum id="org.mate.screensaver.Mode">
+ <value nick="blank-only" value="0"/>
+ <value nick="random" value="1"/>
+ <value nick="single" value="2"/>
+ </enum>
+ <schema gettext-domain="@GETTEXT_PACKAGE@" id="org.mate.screensaver" path="/org/mate-screensaver/">
+ <key name="idle-activation-enabled" type="b">
+ <default>true</default>
+ <summary>Activate when idle</summary>
+ <description>Set this to TRUE to activate the screensaver when the session is idle.</description>
+ </key>
+ <key name="lock-enabled" type="b">
+ <default>true</default>
+ <summary>Lock on activation</summary>
+ <description>Set this to TRUE to lock the screen when the screensaver goes active.</description>
+ </key>
+ <key name="mode" enum="org.mate.screensaver.Mode">
+ <default>'blank-only'</default>
+ <summary>Screensaver theme selection mode</summary>
+ <description>The selection mode used by screensaver. May be "blank-only" to enable the screensaver without using any theme on activation, "single" to enable screensaver using only one theme on activation (specified in "themes" key), and "random" to enable the screensaver using a random theme on activation.</description>
+ </key>
+ <key name="themes" type="as">
+ <default>[]</default>
+ <summary>Screensaver themes</summary>
+ <description>This key specifies the list of themes to be used by the screensaver. It's ignored when "mode" key is "blank-only", should provide the theme name when "mode" is "single", and should provide a list of themes when "mode" is "random".</description>
+ </key>
+ <key name="idle-delay" type="i">
+ <default>10</default>
+ <summary>Time before session is considered idle</summary>
+ <description>The number of minutes of inactivity before the session is considered idle.</description>
+ </key>
+ <key name="power-management-delay" type="i">
+ <default>30</default>
+ <summary>Time before power management baseline</summary>
+ <description>The number of seconds of inactivity before signalling to power management. This key is set and maintained by the session power management agent.</description>
+ </key>
+ <key name="cycle-delay" type="i">
+ <default>10</default>
+ <summary>Time before theme change</summary>
+ <description>The number of minutes to run before changing the screensaver theme.</description>
+ </key>
+ <key name="lock-delay" type="i">
+ <default>0</default>
+ <summary>Time before locking</summary>
+ <description>The number of minutes after screensaver activation before locking the screen.</description>
+ </key>
+ <key name="embedded-keyboard-enabled" type="b">
+ <default>false</default>
+ <summary>Allow embedding a keyboard into the window</summary>
+ <description>Set this to TRUE to allow embedding a keyboard into the window when trying to unlock. The "keyboard_command" key must be set with the appropriate command.</description>
+ </key>
+ <key name="embedded-keyboard-command" type="s">
+ <default>''</default>
+ <summary>Embedded keyboard command</summary>
+ <description>The command that will be run, if the "embedded_keyboard_enabled" key is set to TRUE, to embed a keyboard widget into the window. This command should implement an XEMBED plug interface and output a window XID on the standard output.</description>
+ </key>
+ <key name="logout-enabled" type="b">
+ <default>false</default>
+ <summary>Allow logout</summary>
+ <description>Set this to TRUE to offer an option in the unlock dialog to allow logging out after a delay. The delay is specified in the "logout_delay" key.</description>
+ </key>
+ <key name="logout-delay" type="i">
+ <default>120</default>
+ <summary>Time before logout option</summary>
+ <description>The number of minutes after the screensaver activation before a logout option will appear in the unlock dialog. This key has effect only if the "logout_enable" key is set to TRUE.</description>
+ </key>
+ <key name="logout-command" type="s">
+ <default>''</default>
+ <summary>Logout command</summary>
+ <description>The command to invoke when the logout button is clicked. This command should simply log the user out without any interaction. This key has effect only if the "logout_enable" key is set to TRUE.</description>
+ </key>
+ <key name="user-switch-enabled" type="b">
+ <default>true</default>
+ <summary>Allow user switching</summary>
+ <description>Set this to TRUE to offer an option in the unlock dialog to switch to a different user account.</description>
+ </key>
+ <key name="status-message-enabled" type="b">
+ <default>true</default>
+ <summary>Allow the session status message to be displayed</summary>
+ <description>Allow the session status message to be displayed when the screen is locked.</description>
+ </key>
+ </schema>
+</schemalist>
+