GNOME Bugzilla – Bug 557989
lockdown in the keybinding capplet
Last modified: 2008-11-11 05:32:29 UTC
The keybinding capplet now supports adding custom shortcuts. When the keybinding plugin in g-s-d gains lockdown support for custom keybindings, the keybinding capplet should be updated to properly react to that, too. The required code snipplet in the setup_dialog function looks roughly like this: + accepted_keys = gconf_client_get_list (client, + GCONF_BINDING_DIR "/accepted_keys", + GCONF_VALUE_STRING, + NULL); + if (accepted_keys != NULL) + { + g_slist_foreach (accepted_keys, (GFunc)g_free, NULL); + g_slist_free (accepted_keys); + gtk_widget_set_sensitive (WID ("add-button"), FALSE); + }
I've committed this now.