diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2021-02-18 16:08:53 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2021-02-18 16:08:53 +0100 |
commit | d7db0faa4e92f5a505677344c0cf326db46d8b12 (patch) | |
tree | a9d795a9609729ba3289650e1b8757fab28f2800 | |
parent | 54faf11c3bd3ded398af4e5d1b0ede237e4e2273 (diff) | |
download | gnome-control-center-d7db0faa4e92f5a505677344c0cf326db46d8b12.tar.gz |
universal-access: Look up double-click setting in the right schema
This was changed in commit 006d0e6a63, and wrongly made to look on the
wrong schema. Fix it up so double-click setting lookup happens on
org.gnome.desktop.peripherals.mouse.
Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1256
-rw-r--r-- | panels/universal-access/cc-ua-panel.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/panels/universal-access/cc-ua-panel.c b/panels/universal-access/cc-ua-panel.c index 0dd2bd3d2..2cd94c59d 100644 --- a/panels/universal-access/cc-ua-panel.c +++ b/panels/universal-access/cc-ua-panel.c @@ -97,6 +97,8 @@ #define KEY_DWELL_CLICK_ENABLED "dwell-click-enabled" #define KEY_DWELL_TIME "dwell-time" #define KEY_DWELL_THRESHOLD "dwell-threshold" + +#define MOUSE_PERIPHERAL_SETTINGS "org.gnome.desktop.peripherals.mouse" #define KEY_DOUBLE_CLICK_DELAY "double-click" #define SCROLL_HEIGHT 490 @@ -151,6 +153,7 @@ struct _CcUaPanel GSettings *mouse_settings; GSettings *kb_desktop_settings; GSettings *application_settings; + GSettings *gds_mouse_settings; GList *sections; GList *sections_reverse; @@ -170,6 +173,7 @@ cc_ua_panel_dispose (GObject *object) g_clear_object (&self->mouse_settings); g_clear_object (&self->kb_desktop_settings); g_clear_object (&self->application_settings); + g_clear_object (&self->gds_mouse_settings); g_clear_pointer (&self->sections, g_list_free); g_clear_pointer (&self->sections_reverse, g_list_free); @@ -687,7 +691,7 @@ cc_ua_panel_init_mouse (CcUaPanel *self) G_CALLBACK (update_click_assist_label), self, G_CONNECT_SWAPPED); update_click_assist_label (self); - g_settings_bind (self->mouse_settings, "double-click", + g_settings_bind (self->gds_mouse_settings, "double-click", gtk_range_get_adjustment (GTK_RANGE (self->double_click_delay_scale)), "value", G_SETTINGS_BIND_DEFAULT); @@ -707,6 +711,7 @@ cc_ua_panel_init (CcUaPanel *self) self->kb_settings = g_settings_new (KEYBOARD_SETTINGS); self->kb_desktop_settings = g_settings_new (KEYBOARD_DESKTOP_SETTINGS); self->mouse_settings = g_settings_new (MOUSE_SETTINGS); + self->gds_mouse_settings = g_settings_new (MOUSE_PERIPHERAL_SETTINGS); self->application_settings = g_settings_new (APPLICATION_SETTINGS); cc_ua_panel_init_status (self); |