[gnome-control-center] keyboard: Honor immutable command/name in custom commands
- From: Christophe Fergeau <teuf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] keyboard: Honor immutable command/name in custom commands
- Date: Fri, 15 May 2015 17:44:33 +0000 (UTC)
commit 5f7ee29a44cd6e9a28df56bf4d9a7ea8ce10b478
Author: Christophe Fergeau <cfergeau redhat com>
Date: Thu May 14 16:12:03 2015 +0200
keyboard: Honor immutable command/name in custom commands
If the gsettings key for the command or name of a custom shortcut is not
writable, the keyboard panel still lets you edit them. This commits
makes the corresponding widgets unsensitive when the gsettings key is
not writable.
https://bugzilla.gnome.org/show_bug.cgi?id=749381
panels/keyboard/keyboard-shortcuts.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/panels/keyboard/keyboard-shortcuts.c b/panels/keyboard/keyboard-shortcuts.c
index 47341f2..29681b5 100644
--- a/panels/keyboard/keyboard-shortcuts.c
+++ b/panels/keyboard/keyboard-shortcuts.c
@@ -986,6 +986,10 @@ edit_custom_shortcut (CcKeyboardItem *item)
g_settings_delay (settings);
+ gtk_widget_set_sensitive (custom_shortcut_name_entry,
+ item->desc_editable);
+ gtk_widget_set_sensitive (custom_shortcut_command_entry,
+ item->cmd_editable);
gtk_window_present (GTK_WINDOW (custom_shortcut_dialog));
result = gtk_dialog_run (GTK_DIALOG (custom_shortcut_dialog));
switch (result)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]