summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-10-10 17:34:01 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-10-10 20:32:04 +0200
commit44583c313aad7076d67f868379e9b6616485b299 (patch)
tree9caa4ae68cfa03d5a7b2f2791e02d7e50656e5f3 /vcl/unx
parent96726f4a7f2f23972c987e9a4be75539f24fb0b7 (diff)
gtk4: this is fixed now by at least >= gtk4-4.4.0
Change-Id: Iaff7c779917c7a1d90849d2091dd818bc0c04750 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123342 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/unx')
-rw-r--r--vcl/unx/gtk3/gtksalmenu.cxx8
1 files changed, 0 insertions, 8 deletions
diff --git a/vcl/unx/gtk3/gtksalmenu.cxx b/vcl/unx/gtk3/gtksalmenu.cxx
index ed67e7d30d88..1ef9dfc88137 100644
--- a/vcl/unx/gtk3/gtksalmenu.cxx
+++ b/vcl/unx/gtk3/gtksalmenu.cxx
@@ -1233,14 +1233,6 @@ void GtkSalMenu::NativeSetItemText( unsigned nSection, unsigned nItemPos, const
OUString aText = rText.replaceAll( "_", "__" );
// Replace the LibreOffice hotkey identifier with an underscore
aText = aText.replace( '~', '_' );
- // quick and easy replacement of & to &amp; etc, for e.g. "Zoom & Pa_n" in impress
-#if GTK_CHECK_VERSION(4, 0, 0)
- {
- OUString aTempString;
- vcl::escapeStringXML(aText, aTempString);
- aText = aTempString;
- }
-#endif
OString aConvertedText = OUStringToOString( aText, RTL_TEXTENCODING_UTF8 );
// Update item text only when necessary.