Index: chrome/browser/gtk/menu_gtk.cc |
=================================================================== |
--- chrome/browser/gtk/menu_gtk.cc (revision 17208) |
+++ chrome/browser/gtk/menu_gtk.cc (working copy) |
@@ -42,7 +42,9 @@ |
void MenuGtk::AppendMenuItemWithLabel(int command_id, |
const std::string& label) { |
- GtkWidget* menu_item = gtk_menu_item_new_with_mnemonic(label.c_str()); |
+ std::string converted_label = ConvertAcceleratorsFromWindowsStyle(label); |
+ GtkWidget* menu_item = |
+ gtk_menu_item_new_with_mnemonic(converted_label.c_str()); |
AddMenuItemWithId(menu_item, command_id); |
} |
@@ -55,7 +57,9 @@ |
void MenuGtk::AppendCheckMenuItemWithLabel(int command_id, |
const std::string& label) { |
- GtkWidget* menu_item = gtk_check_menu_item_new_with_mnemonic(label.c_str()); |
+ std::string converted_label = ConvertAcceleratorsFromWindowsStyle(label); |
+ GtkWidget* menu_item = |
+ gtk_check_menu_item_new_with_mnemonic(converted_label.c_str()); |
AddMenuItemWithId(menu_item, command_id); |
} |
@@ -192,7 +196,9 @@ |
GtkWidget* MenuGtk::BuildMenuItemWithImage(const std::string& label, |
const SkBitmap& icon) { |
- GtkWidget* menu_item = gtk_image_menu_item_new_with_mnemonic(label.c_str()); |
+ std::string converted_label = ConvertAcceleratorsFromWindowsStyle(label); |
+ GtkWidget* menu_item = |
+ gtk_image_menu_item_new_with_mnemonic(converted_label.c_str()); |
GdkPixbuf* pixbuf = gfx::GdkPixbufFromSkBitmap(&icon); |
gtk_image_menu_item_set_image(GTK_IMAGE_MENU_ITEM(menu_item), |