gnome-control-center r9214 - trunk/capplets/keybindings



Author: hadess
Date: Wed Jan 28 11:35:08 2009
New Revision: 9214
URL: http://svn.gnome.org/viewvc/gnome-control-center?rev=9214&view=rev

Log:
2009-01-28  Bastien Nocera  <hadess hadess net>

	* gnome-keybinding-properties.c (append_keys_to_tree):
	Print a warning when a key doesn't have a schema, so no
	description, makes debugging things like:
	https://bugzilla.redhat.com/show_bug.cgi?id=482813
	easier



Modified:
   trunk/capplets/keybindings/ChangeLog
   trunk/capplets/keybindings/gnome-keybinding-properties.c

Modified: trunk/capplets/keybindings/gnome-keybinding-properties.c
==============================================================================
--- trunk/capplets/keybindings/gnome-keybinding-properties.c	(original)
+++ trunk/capplets/keybindings/gnome-keybinding-properties.c	Wed Jan 28 11:35:08 2009
@@ -606,6 +606,12 @@
             }
         }
 
+      if (description == NULL)
+        {
+	  g_warning ("No description for key '%s'", key_string);
+	  description = g_path_get_basename (key_string);
+	}
+
       if (keys_list[j].cmd_name != NULL)
         {
           command = gconf_client_get_string (client, keys_list[j].cmd_name, NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]