data: Add a new schema for foo mode

The foo mode will have a different default value for button-layout as
compared to the standard GNOME 3 mode. To avoid one mode from
overwriting the setting from another, lets use a different schema
for this mode.

https://bugzilla.gnome.org/show_bug.cgi?id=689234
This commit is contained in:
Debarshi Ray 2012-11-28 19:15:11 +01:00
parent d517c13d7a
commit b8f9a108f9
2 changed files with 21 additions and 3 deletions

View File

@ -54,7 +54,9 @@ keys_in_files = \
$(NULL)
keys_DATA = $(keys_in_files:.xml.in=.xml)
gsettings_SCHEMAS = org.gnome.shell.gschema.xml
gsettings_SCHEMAS = \
org.gnome.shell.gschema.xml \
org.gnome.shell-foo.gschema.xml
@INTLTOOL_XML_NOMERGE_RULE@
@ -81,7 +83,8 @@ EXTRA_DIST = \
$(menu_DATA) \
$(convert_DATA) \
$(keys_in_files) \
org.gnome.shell.gschema.xml.in.in
org.gnome.shell.gschema.xml.in.in \
org.gnome.shell-foo.gschema.xml.in.in
CLEANFILES = \
gnome-shell.desktop.in \
@ -91,4 +94,6 @@ CLEANFILES = \
$(gsettings_SCHEMAS) \
gschemas.compiled \
org.gnome.shell.gschema.valid \
org.gnome.shell.gschema.xml.in
org.gnome.shell.gschema.xml.in \
org.gnome.shell-foo.gschema.valid \
org.gnome.shell-foo.gschema.xml.in

View File

@ -0,0 +1,13 @@
<schemalist>
<schema id="org.gnome.shell-foo.overrides" path="/org/gnome/shell-foo/overrides/"
gettext-domain="@GETTEXT_PACKAGE@">
<key name="button-layout" type="s">
<default>":minimize,close"</default>
<_summary>Arrangement of buttons on the titlebar</_summary>
<_description>
This key overrides the key in org.gnome.desktop.wm.preferences when
running GNOME Shell in Foo mode.
</_description>
</key>
</schema>
</schemalist>