diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2015-01-15 19:57:20 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2015-01-19 16:52:21 +0100 |
commit | f8ccbdf8a85689b93a174f796066e656e28345d9 (patch) | |
tree | 2daff4fe81871f44aee8a3216fa3b41791f2a4b9 /data | |
parent | ca754de5039fed6cb96b883dd8e41d8b22ebeea6 (diff) | |
download | gnome-settings-daemon-f8ccbdf8a85689b93a174f796066e656e28345d9.tar.gz |
common: Migrate input settings to gsettings-desktop-schemas keys
The deprecated keys are kept in isolated ".deprecated" suffixed schemas.
On plugin startup, the settings-daemon paths are opened with these legacy
schemas, and all user-modified keys are dumped to the new location and
reset.
This ensures the transition just happens once per-key, and ensures the
dconf database is left clean.
https://bugzilla.gnome.org/show_bug.cgi?id=742593
Diffstat (limited to 'data')
-rw-r--r-- | data/org.gnome.settings-daemon.peripherals.gschema.xml.in.in | 176 |
1 files changed, 90 insertions, 86 deletions
diff --git a/data/org.gnome.settings-daemon.peripherals.gschema.xml.in.in b/data/org.gnome.settings-daemon.peripherals.gschema.xml.in.in index d2f70ed9..6a65f081 100644 --- a/data/org.gnome.settings-daemon.peripherals.gschema.xml.in.in +++ b/data/org.gnome.settings-daemon.peripherals.gschema.xml.in.in @@ -1,10 +1,8 @@ <schemalist> <schema gettext-domain="@GETTEXT_PACKAGE@" id="org.gnome.settings-daemon.peripherals" path="/org/gnome/settings-daemon/peripherals/"> <child name="smartcard" schema="org.gnome.settings-daemon.peripherals.smartcard"/> - <child name="touchpad" schema="org.gnome.settings-daemon.peripherals.touchpad"/> <child name="keyboard" schema="org.gnome.settings-daemon.peripherals.keyboard"/> <child name="mouse" schema="org.gnome.settings-daemon.peripherals.mouse"/> - <child name="trackball" schema="org.gnome.settings-daemon.peripherals.trackball"/> <child name="touchscreen" schema="org.gnome.settings-daemon.peripherals.touchscreen"/> <child name="input-devices" schema="org.gnome.settings-daemon.peripherals.input-devices"/> </schema> @@ -15,70 +13,10 @@ <_description>Set this to one of "none", "lock-screen", or "force-logout". The action will get performed when the smartcard used for log in is removed.</_description> </key> </schema> - <schema gettext-domain="@GETTEXT_PACKAGE@" id="org.gnome.settings-daemon.peripherals.touchpad" path="/org/gnome/settings-daemon/peripherals/touchpad/"> - <key name="disable-while-typing" type="b"> - <default>false</default> - <_summary>Disable touchpad while typing</_summary> - <_description>Set this to TRUE if you have problems with accidentally hitting the touchpad while typing.</_description> - </key> - <key name="horiz-scroll-enabled" type="b"> - <default>true</default> - <_summary>Enable horizontal scrolling</_summary> - <_description>Set this to TRUE to allow horizontal scrolling by the same method selected with the scroll_method key.</_description> - </key> - <key name="scroll-method" enum="org.gnome.settings-daemon.GsdTouchpadScrollMethod"> - <default>'two-finger-scrolling'</default> - <_summary>Select the touchpad scroll method</_summary> - <_description>Select the touchpad scroll method. Supported values are: "disabled", "edge-scrolling", "two-finger-scrolling".</_description> - </key> - <key name="tap-to-click" type="b"> - <default>false</default> - <_summary>Enable mouse clicks with touchpad</_summary> - <_description>Set this to TRUE to be able to send mouse clicks by tapping on the touchpad.</_description> - </key> - <key name="touchpad-enabled" type="b"> - <default>true</default> - <_summary>Enable touchpad</_summary> - <_description>Set this to TRUE to enable all touchpads.</_description> - </key> - <key name="left-handed" enum="org.gnome.settings-daemon.GsdTouchpadHandedness"> - <default>'mouse'</default> - <summary>Touchpad button orientation</summary> - <description>Swap left and right mouse buttons for left-handed mice with 'left', 'right' for right-handed, 'mouse' to follow the mouse setting.</description> - </key> - <key name="motion-acceleration" type="d"> - <default>-1</default> - <summary>Single Click</summary> - <description>Acceleration multiplier for mouse motion. A value of -1 is the system default.</description> - </key> - <key name="motion-threshold" type="i"> - <default>-1</default> - <summary>Motion Threshold</summary> - <description>Distance in pixels the pointer must move before accelerated mouse motion is activated. A value of -1 is the system default.</description> - </key> - <key name="natural-scroll" type="b"> - <default>false</default> - <summary>Natural scrolling</summary> - <description>Set this to TRUE to enable natural (reverse) scrolling for touchpads.</description> - </key> - </schema> <schema gettext-domain="@GETTEXT_PACKAGE@" id="org.gnome.settings-daemon.peripherals.keyboard" path="/org/gnome/settings-daemon/peripherals/keyboard/"> - <key name="repeat" type="b"> - <default>true</default> - </key> <key name="click" type="b"> <default>true</default> </key> - <key name="repeat-interval" type="u"> - <default>30</default> - <summary>Key Repeat Interval</summary> - <description>Delay between repeats in milliseconds.</description> - </key> - <key name="delay" type="u"> - <default>500</default> - <summary>Initial Key Repeat Delay</summary> - <description>Initial key repeat delay in milliseconds.</description> - </key> <key name="click-volume" type="i"> <default>0</default> </key> @@ -113,6 +51,33 @@ <default>false</default> <_summary>Highlights the current location of the pointer when the Control key is pressed and released.</_summary> </key> + <key name="double-click" type="i"> + <default>400</default> + <_summary>Double click time</_summary> + <_description> Length of a double click in milliseconds.</_description> + </key> + <key name="drag-threshold" type="i"> + <default>8</default> + <_summary>Drag threshold</_summary> + <_description>Distance before a drag is started.</_description> + </key> + </schema> + <schema gettext-domain="@GETTEXT_PACKAGE@" id="org.gnome.settings-daemon.peripherals.touchscreen" path="/org/gnome/settings-daemon/peripherals/touchscreen/"> + <key name="orientation-lock" type="b"> + <default>false</default> + <_summary>Whether the tablet's orientation is locked, or rotated automatically.</_summary> + </key> + </schema> + <schema gettext-domain="@GETTEXT_PACKAGE@" id="org.gnome.settings-daemon.peripherals.input-devices" path="/org/gnome/settings-daemon/peripherals/input-devices/"> + <key name="hotplug-command" type="s"> + <default>''</default> + <_summary>Device hotplug custom command</_summary> + <_description>Command to be run when a device is added or removed. An exit value of 1 means that the device will not be handled further by gnome-settings-daemon.</_description> + </key> + </schema> + + <!-- Deprecated schemas/keys --> + <schema id="org.gnome.settings-daemon.peripherals.mouse.deprecated"> <key name="left-handed" type="b"> <default>false</default> <summary>Mouse button orientation</summary> @@ -128,40 +93,79 @@ <summary>Motion Threshold</summary> <description>Distance in pixels the pointer must move before accelerated mouse motion is activated. A value of -1 is the system default.</description> </key> - <key name="double-click" type="i"> - <default>400</default> - <_summary>Double click time</_summary> - <_description> Length of a double click in milliseconds.</_description> - </key> - <key name="drag-threshold" type="i"> - <default>8</default> - <_summary>Drag threshold</_summary> - <_description>Distance before a drag is started.</_description> - </key> <key name="middle-button-enabled" type="b"> <default>false</default> - <_summary>Middle button emulation</_summary> - <_description>Enables middle mouse button emulation through simultaneous left and right button click.</_description> + <summary>Middle button emulation</summary> + <description>Enables middle mouse button emulation through simultaneous left and right button click.</description> </key> </schema> - <schema gettext-domain="@GETTEXT_PACKAGE@" id="org.gnome.settings-daemon.peripherals.touchscreen" path="/org/gnome/settings-daemon/peripherals/touchscreen/"> - <key name="orientation-lock" type="b"> + <schema id="org.gnome.settings-daemon.peripherals.keyboard.deprecated"> + <key name="repeat" type="b"> + <default>true</default> + </key> + <key name="repeat-interval" type="u"> + <default>30</default> + <summary>Key Repeat Interval</summary> + <description>Delay between repeats in milliseconds.</description> + </key> + <key name="delay" type="u"> + <default>500</default> + <summary>Initial Key Repeat Delay</summary> + <description>Initial key repeat delay in milliseconds.</description> + </key> + </schema> + <schema id="org.gnome.settings-daemon.peripherals.touchpad.deprecated"> + <key name="disable-while-typing" type="b"> <default>false</default> - <_summary>Whether the tablet's orientation is locked, or rotated automatically.</_summary> + <summary>Disable touchpad while typing</summary> + <description>Set this to TRUE if you have problems with accidentally hitting the touchpad while typing.</description> + </key> + <key name="horiz-scroll-enabled" type="b"> + <default>true</default> + <summary>Enable horizontal scrolling</summary> + <description>Set this to TRUE to allow horizontal scrolling by the same method selected with the scroll_method key.</description> + </key> + <key name="scroll-method" enum="org.gnome.settings-daemon.GsdTouchpadScrollMethod"> + <default>'two-finger-scrolling'</default> + <summary>Select the touchpad scroll method</summary> + <description>Select the touchpad scroll method. Supported values are: "disabled", "edge-scrolling", "two-finger-scrolling".</description> + </key> + <key name="tap-to-click" type="b"> + <default>false</default> + <summary>Enable mouse clicks with touchpad</summary> + <description>Set this to TRUE to be able to send mouse clicks by tapping on the touchpad.</description> + </key> + <key name="touchpad-enabled" type="b"> + <default>true</default> + <summary>Enable touchpad</summary> + <description>Set this to TRUE to enable all touchpads.</description> + </key> + <key name="left-handed" enum="org.gnome.settings-daemon.GsdTouchpadHandedness"> + <default>'mouse'</default> + <summary>Touchpad button orientation</summary> + <description>Swap left and right mouse buttons for left-handed mice with 'left', 'right' for right-handed, 'mouse' to follow the mouse setting.</description> + </key> + <key name="motion-acceleration" type="d"> + <default>-1</default> + <summary>Single Click</summary> + <description>Acceleration multiplier for mouse motion. A value of -1 is the system default.</description> + </key> + <key name="motion-threshold" type="i"> + <default>-1</default> + <summary>Motion Threshold</summary> + <description>Distance in pixels the pointer must move before accelerated mouse motion is activated. A value of -1 is the system default.</description> + </key> + <key name="natural-scroll" type="b"> + <default>false</default> + <summary>Natural scrolling</summary> + <description>Set this to TRUE to enable natural (reverse) scrolling for touchpads.</description> </key> </schema> - <schema gettext-domain="@GETTEXT_PACKAGE@" id="org.gnome.settings-daemon.peripherals.trackball" path="/org/gnome/settings-daemon/peripherals/trackball/"> + <schema id="org.gnome.settings-daemon.peripherals.trackball.deprecated"> <key name="scroll-wheel-emulation-button" type="i"> <default>0</default> <range min="0" max="24"/> - <_summary>Mouse wheel emulation button. 0 to disable the feature.</_summary> - </key> - </schema> - <schema gettext-domain="@GETTEXT_PACKAGE@" id="org.gnome.settings-daemon.peripherals.input-devices" path="/org/gnome/settings-daemon/peripherals/input-devices/"> - <key name="hotplug-command" type="s"> - <default>''</default> - <_summary>Device hotplug custom command</_summary> - <_description>Command to be run when a device is added or removed. An exit value of 1 means that the device will not be handled further by gnome-settings-daemon.</_description> + <summary>Mouse wheel emulation button. 0 to disable the feature.</summary> </key> </schema> </schemalist> |