keyboard: make Add button insensitive after editing
When creating a new keyboard shortcut, the Add button gets sensitive when all the fields are valid. If the user tries to create a new shortcut right after closing the shortcut editor dialog, the Add button is still sensitive even with invalid custom fields. Fix that by making the Add button sensitive whenever we finish editing the new custom shortcut. https://bugzilla.gnome.org/show_bug.cgi?id=769314
This commit is contained in:
parent
cf3ff886ca
commit
d8d85bae12
1 changed files with 2 additions and 0 deletions
|
@ -127,6 +127,8 @@ clear_custom_entries (CcKeyboardShortcutEditor *self)
|
|||
gtk_entry_set_text (GTK_ENTRY (self->name_entry), "");
|
||||
gtk_entry_set_text (GTK_ENTRY (self->command_entry), "");
|
||||
|
||||
gtk_widget_set_sensitive (self->add_button, FALSE);
|
||||
|
||||
gtk_shortcut_label_set_accelerator (GTK_SHORTCUT_LABEL (self->custom_shortcut_accel_label), "");
|
||||
gtk_label_set_label (GTK_LABEL (self->new_shortcut_conflict_label), "");
|
||||
gtk_label_set_label (GTK_LABEL (self->shortcut_conflict_label), "");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue