Index: gnome-settings-daemon/eggaccelerators.c
===================================================================
RCS file: /cvs/gnome/gnome-control-center/gnome-settings-daemon/eggaccelerators.c,v
retrieving revision 1.1
diff -u -w -r1.1 eggaccelerators.c
--- gnome-settings-daemon/eggaccelerators.c	13 Jan 2004 15:57:35 -0000	1.1
+++ gnome-settings-daemon/eggaccelerators.c	18 Mar 2004 15:53:55 -0000
@@ -326,7 +326,7 @@
 	{
           keyval = gdk_keyval_from_name (accelerator);
 
-          if (keyval == 0)
+          if (keyval == GDK_VoidSymbol)
 	    {
 	      /* If keyval is 0, than maybe it's a keycode.  Check for 0x## */
 	      if (len >= 4 && is_keycode (accelerator))
@@ -344,7 +344,7 @@
 		    {
 		      bad_keyval = TRUE;
 		    }
-		  else
+		  else if (keycode != NULL)
 		    {
 		      *keycode = tmp_keycode;
 		      /* 0x00 is an invalid keycode too. */
@@ -352,7 +352,8 @@
 			bad_keyval = TRUE;
 		    }
 		}
-	    }
+	    } else if (keycode != NULL)
+		*keycode = XKeysymToKeycode (GDK_DISPLAY(), keyval);
 
           accelerator += len;
           len -= len;
