[gnome-control-center] keyboard: ensure the "Add" button is insensitive when adding shortcut



commit e601ae74eea23c6a5a75e091d0337f39f6e4d53d
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri Feb 3 19:41:43 2017 -0200

    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 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/panels/keyboard/cc-keyboard-shortcut-editor.c b/panels/keyboard/cc-keyboard-shortcut-editor.c
index e568cc4..c09686c 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]