[Libreoffice-commits] core.git: vcl/unx

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Wed Oct 2 10:20:50 UTC 2019


 vcl/unx/gtk3/gtk3gtkinst.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 07dbcc7410d2f4db14e660d5b4d16cecfcfdf86a
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Oct 1 16:02:53 2019 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Oct 2 12:19:41 2019 +0200

    strip mnemonics when setting custom GtkFrame label
    
    e.g. draw/impress printer options page
    
    Change-Id: Ic5b9bd41e1de4a3ea7d0aba36b5a65009a390ddd
    Reviewed-on: https://gerrit.libreoffice.org/80001
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index b0808beadfa5..5359f9106b52 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -4386,7 +4386,7 @@ public:
 
     virtual void set_label(const OUString& rText) override
     {
-        gtk_label_set_label(GTK_LABEL(gtk_frame_get_label_widget(m_pFrame)), MapToGtkAccelerator(rText).getStr());
+        gtk_label_set_label(GTK_LABEL(gtk_frame_get_label_widget(m_pFrame)), rText.replaceFirst("~", "").toUtf8().getStr());
     }
 
     virtual OUString get_label() const override


More information about the Libreoffice-commits mailing list