After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 557989 - lockdown in the keybinding capplet
lockdown in the keybinding capplet
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: [obsolete] Keybinding
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on: 553434
Blocks:
 
 
Reported: 2008-10-26 18:46 UTC by Matthias Clasen
Modified: 2008-11-11 05:32 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Matthias Clasen 2008-10-26 18:46:40 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);
+    }
Comment 1 Matthias Clasen 2008-11-11 05:32:29 UTC
I've committed this now.