Skip to content

files-view: Fix for unintended mnemonics in context menu

Daniel Pauls requested to merge danielxyz/nautilus:context_menu_fix into master

Nautilus doesn't show underscores in the "New Document >" section of the context menu correctly.

To reproduce put a file with underscores "_" in the "~/Templates" directory and then try to create a "New Document" in Nautilus. The underscores are getting stripped away and you now have a mnemonic character.

To fix this issue, use the 'eel_str_double_underscores' function from eel/eel-string.c on the label before adding it to the context menu. Double underscores will be interpreted as a single underscore instead of a mnemonic character.

https://bugzilla.gnome.org/show_bug.cgi?id=783249 Closes #995 (closed)

Edited by Daniel Pauls

Merge request reports