summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2020-08-27 00:13:13 +0200
committerCarlos Garnacho <carlosg@gnome.org>2021-01-12 00:04:28 +0100
commit157521ffc794d754563c06fad3e5bb220db85302 (patch)
tree0baf03ace00cb767fe762740ce92f02ad08f0a94
parent8c4bca1d2d1a641ccb1a8111b1bc90806d7c144e (diff)
downloadgnome-settings-daemon-wip/carlosg/shuffle-font-mouse-settings.tar.gz
xsettings: Adopt drag-threshold/double-click settings from gsettings-desktop-schemaswip/carlosg/shuffle-font-mouse-settings
These settings are more universal than gnome-settings-daemon.
-rw-r--r--data/org.gnome.settings-daemon.peripherals.gschema.xml.in22
-rw-r--r--plugins/xsettings/gsd-xsettings-manager.c14
2 files changed, 22 insertions, 14 deletions
diff --git a/data/org.gnome.settings-daemon.peripherals.gschema.xml.in b/data/org.gnome.settings-daemon.peripherals.gschema.xml.in
index a6705801..c2d716a7 100644
--- a/data/org.gnome.settings-daemon.peripherals.gschema.xml.in
+++ b/data/org.gnome.settings-daemon.peripherals.gschema.xml.in
@@ -36,18 +36,6 @@
<description>File name of the bell sound to be played.</description>
</key>
</schema>
- <schema gettext-domain="@GETTEXT_PACKAGE@" id="org.gnome.settings-daemon.peripherals.mouse" path="/org/gnome/settings-daemon/peripherals/mouse/">
- <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>
@@ -77,6 +65,16 @@
<summary>Middle button emulation</summary>
<description>Enables middle mouse button emulation through simultaneous left and right button click.</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>
</schema>
<schema id="org.gnome.settings-daemon.peripherals.keyboard.deprecated">
<key name="repeat" type="b">
diff --git a/plugins/xsettings/gsd-xsettings-manager.c b/plugins/xsettings/gsd-xsettings-manager.c
index adcdc440..07ec543e 100644
--- a/plugins/xsettings/gsd-xsettings-manager.c
+++ b/plugins/xsettings/gsd-xsettings-manager.c
@@ -467,8 +467,8 @@ static FixedEntry fixed_entries [] = {
};
static TranslationEntry translations [] = {
- { "org.gnome.settings-daemon.peripherals.mouse", "double-click", "Net/DoubleClickTime", translate_int_int },
- { "org.gnome.settings-daemon.peripherals.mouse", "drag-threshold", "Net/DndDragThreshold", translate_int_int },
+ { "org.gnome.desktop.peripherals.mouse", "double-click", "Net/DoubleClickTime", translate_int_int },
+ { "org.gnome.desktop.peripherals.mouse", "drag-threshold", "Net/DndDragThreshold", translate_int_int },
{ "org.gnome.desktop.background", "show-desktop-icons", "Gtk/ShellShowsDesktop", translate_bool_int },
@@ -1272,12 +1272,22 @@ migrate_settings (void)
{ "hinting", "font-hinting", NULL },
{ "rgba-order", "font-rgba-order", NULL },
};
+ GsdSettingsMigrateEntry mouse_entries[] = {
+ { "double-click", "double-click", NULL },
+ { "drag-threshold", "drag-threshold", NULL },
+ };
gsd_settings_migrate_check ("org.gnome.settings-daemon.plugins.xsettings.deprecated",
"/org/gnome/settings-daemon/plugins/xsettings/",
"org.gnome.desktop.interface",
"/org/gnome/desktop/interface/",
xsettings_entries, G_N_ELEMENTS (xsettings_entries));
+
+ gsd_settings_migrate_check ("org.gnome.settings-daemon.peripherals.mouse.deprecated",
+ "/org/gnome/settings-daemon/peripherals/mouse/",
+ "org.gnome.desktop.peripherals.mouse",
+ "/org/gnome/desktop/peripherals/mouse/",
+ mouse_entries, G_N_ELEMENTS (mouse_entries));
}
gboolean