[gnome-control-center/wip/gbsneto/keyboard-improvements: 3/3] keyboard: make Add button insensitive after editing
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/gbsneto/keyboard-improvements: 3/3] keyboard: make Add button insensitive after editing
- Date: Fri, 29 Jul 2016 19:25:44 +0000 (UTC)
commit f3fc48e5bf155ead2394e1b3cd5806e518b1cff3
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Jul 29 16:05:26 2016 -0300
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 immediately tries to create a new shortcut, the
Add button is still sensitive even with the custom
fields wrong.
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
panels/keyboard/cc-keyboard-shortcut-editor.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/panels/keyboard/cc-keyboard-shortcut-editor.c b/panels/keyboard/cc-keyboard-shortcut-editor.c
index fc66212..1574bba 100644
--- a/panels/keyboard/cc-keyboard-shortcut-editor.c
+++ b/panels/keyboard/cc-keyboard-shortcut-editor.c
@@ -129,6 +129,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), "");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]