From e601ae74eea23c6a5a75e091d0337f39f6e4d53d Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Fri, 3 Feb 2017 19:41:43 -0200 Subject: [PATCH] keyboard: ensure the "Add" button is insensitive when adding shortcut After successfully editing a default shortcut (and making sure the "Set" button is sensitive), if the user clicks the '+' row to create a new custom shortcut, the "Add" button is sensitive even with all fields empty. Fix that by ensuring the "Add" button is always insensitive whenever we add a custom shortcut. https://bugzilla.gnome.org/show_bug.cgi?id=777842 --- panels/keyboard/cc-keyboard-shortcut-editor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/panels/keyboard/cc-keyboard-shortcut-editor.c b/panels/keyboard/cc-keyboard-shortcut-editor.c index e568cc40d..c09686c03 100644 --- a/panels/keyboard/cc-keyboard-shortcut-editor.c +++ b/panels/keyboard/cc-keyboard-shortcut-editor.c @@ -1037,6 +1037,7 @@ cc_keyboard_shortcut_editor_set_mode (CcKeyboardShortcutEditor *self, gtk_widget_set_sensitive (self->command_entry, TRUE); gtk_widget_set_sensitive (self->name_entry, TRUE); + gtk_widget_set_sensitive (self->add_button, FALSE); gtk_widget_hide (self->reset_custom_button); gtk_widget_hide (self->remove_button);