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
This commit is contained in:
parent
c57cadf50b
commit
e601ae74ee
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue