summaryrefslogtreecommitdiff
path: root/capplets/keyboard/mate-keyboard-properties-a11y.c
diff options
context:
space:
mode:
authorColomban Wendling <[email protected]>2018-09-26 16:10:14 +0200
committerlukefromdc <[email protected]>2018-09-30 16:04:38 -0400
commit1034ff7bd6c83724b1d64f6000e62e9e451decbe (patch)
tree627c68756952e61a7f2d6edac03ad784b52c913e /capplets/keyboard/mate-keyboard-properties-a11y.c
parentbe9b514539e2533fad0fd01cc36e1fa52faa3c16 (diff)
downloadmate-control-center-1034ff7bd6c83724b1d64f6000e62e9e451decbe.tar.bz2
mate-control-center-1034ff7bd6c83724b1d64f6000e62e9e451decbe.tar.xz
Add UI to control org.mate.accessibility-keyboard.stickykeys-latch-to-lock
Diffstat (limited to 'capplets/keyboard/mate-keyboard-properties-a11y.c')
-rw-r--r--capplets/keyboard/mate-keyboard-properties-a11y.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/capplets/keyboard/mate-keyboard-properties-a11y.c b/capplets/keyboard/mate-keyboard-properties-a11y.c
index 23aea9e1..9a9779a1 100644
--- a/capplets/keyboard/mate-keyboard-properties-a11y.c
+++ b/capplets/keyboard/mate-keyboard-properties-a11y.c
@@ -48,6 +48,7 @@ stickykeys_enable_toggled_cb (GtkWidget *w, GtkBuilder *dialog)
{
gboolean active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (w));
+ gtk_widget_set_sensitive (WID ("stickykeys_latch_to_lock"), active);
gtk_widget_set_sensitive (WID ("stickykeys_two_key_off"), active);
if (notifications_dialog)
gtk_widget_set_sensitive (NWID ("stickykeys_notifications_box"), active);
@@ -232,6 +233,12 @@ setup_a11y_tabs (GtkBuilder *dialog)
stickykeys_enable_toggled_cb (w, dialog);
g_settings_bind (a11y_settings,
+ "stickykeys-latch-to-lock",
+ WID ("stickykeys_latch_to_lock"),
+ "active",
+ G_SETTINGS_BIND_DEFAULT);
+
+ g_settings_bind (a11y_settings,
"stickykeys-two-key-off",
WID ("stickykeys_two_key_off"),
"active",