Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gedit/ChangeLog,v
retrieving revision 1.898
diff -u -p -B -r1.898 ChangeLog
--- ChangeLog	6 Dec 2006 21:46:57 -0000	1.898
+++ ChangeLog	6 Dec 2006 21:57:39 -0000
@@ -1,5 +1,10 @@
 2006-12-06  Steve Frécinaux  <code@istique.net>
 
+	* gedit/gedit-window.c: Fix Bug 349198 – Unable to define accelerators 
+	on language highlighting menus.
+
+2006-12-06  Steve Frécinaux  <code@istique.net>
+
 	* plugins/externaltools/tools/__init__.py: fix regression: accelerators
 	weren't shown in the tool menu anymore.
 
Index: gedit/gedit-window.c
===================================================================
RCS file: /cvs/gnome/gedit/gedit/gedit-window.c,v
retrieving revision 1.45
diff -u -p -B -r1.45 gedit-window.c
--- gedit/gedit-window.c	2 Dec 2006 16:24:02 -0000	1.45
+++ gedit/gedit-window.c	6 Dec 2006 21:57:45 -0000
@@ -834,8 +834,10 @@ create_language_menu_item (GtkSourceLang
 				       NULL,
 				       index);
 
-	gtk_action_group_add_action (window->priv->languages_action_group,
-				     GTK_ACTION (action));
+	/* Action is added with a NULL accel to make the accel is overridable */
+	gtk_action_group_add_action_with_accel (window->priv->languages_action_group,
+						GTK_ACTION (action),
+						NULL);
 	g_object_unref (action);
 
 	/* add the action to the same radio group of the "Normal" action */

