From 15ed08e4e5f44314b428445024545264b4c6d16e Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Thu, 11 Jun 2020 14:10:39 +0200 Subject: keyboard-a11y: Add UI for capslock-beep --- .../mate-keyboard-properties-a11y-notifications.ui | 87 ++++++++++++++++++++++ capplets/keyboard/mate-keyboard-properties-a11y.c | 3 + capplets/keyboard/ui-a11y.suppr | 2 + 3 files changed, 92 insertions(+) (limited to 'capplets') diff --git a/capplets/keyboard/mate-keyboard-properties-a11y-notifications.ui b/capplets/keyboard/mate-keyboard-properties-a11y-notifications.ui index ffe8819f..d092d889 100644 --- a/capplets/keyboard/mate-keyboard-properties-a11y-notifications.ui +++ b/capplets/keyboard/mate-keyboard-properties-a11y-notifications.ui @@ -625,6 +625,93 @@ 4 + + + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + vertical + 6 + + + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + start + Caps Lock + + + + + + False + True + 0 + + + + + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + + + + False + True + 0 + + + + + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + vertical + 6 + + + Beep when pressing a key while Caps_Lock is active + True + True + False + GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + start + True + True + + + False + True + 0 + + + + + False + True + 1 + + + + + False + True + 1 + + + + + False + True + 5 + + False diff --git a/capplets/keyboard/mate-keyboard-properties-a11y.c b/capplets/keyboard/mate-keyboard-properties-a11y.c index 301b1ee1..5f9e2492 100644 --- a/capplets/keyboard/mate-keyboard-properties-a11y.c +++ b/capplets/keyboard/mate-keyboard-properties-a11y.c @@ -149,6 +149,9 @@ notifications_button_clicked_cb (GtkWidget *button, GtkBuilder *dialog) w = NWID ("togglekeys_enable"); g_settings_bind (a11y_settings, "togglekeys-enable", w, "active", G_SETTINGS_BIND_DEFAULT); + w = NWID ("capslock_beep_enable"); + g_settings_bind (a11y_settings, "capslock-beep-enable", w, "active", G_SETTINGS_BIND_DEFAULT); + w = NWID ("stickykeys_modifier_beep"); g_settings_bind (a11y_settings, "stickykeys-modifier-beep", w, "active", G_SETTINGS_BIND_DEFAULT); diff --git a/capplets/keyboard/ui-a11y.suppr b/capplets/keyboard/ui-a11y.suppr index e2c2d70c..a0775acd 100644 --- a/capplets/keyboard/ui-a11y.suppr +++ b/capplets/keyboard/ui-a11y.suppr @@ -1,3 +1,5 @@ +mate-keyboard-properties-a11y-notifications.ui://GtkLabel[@id='label1'] orphan-label +mate-keyboard-properties-a11y-notifications.ui://GtkLabel[@id='label2'] orphan-label mate-keyboard-properties-a11y-notifications.ui://GtkLabel[@id='label33'] orphan-label mate-keyboard-properties-a11y-notifications.ui://GtkLabel[@id='label40'] orphan-label mate-keyboard-properties-a11y-notifications.ui://GtkLabel[@id='label47'] orphan-label -- cgit v1.2.1