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

Caolán McNamara caolanm at redhat.com
Tue Apr 24 07:54:45 UTC 2018


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

New commits:
commit 46581021108cc1f634ffc69c2776584d1f2847d1
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Apr 23 20:52:42 2018 +0100

    Resolves: tdf#117183 exclude stock buttons from missing mnemonics
    
    Change-Id: Ib19f98e398216e8e240918fd82ac19c24b551709
    Reviewed-on: https://gerrit.libreoffice.org/53362
    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 74a4c3473011..0c91ef79a646 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -4219,7 +4219,7 @@ private:
             if (m_pStringReplace != nullptr) {
                 set_label(pButton, (*m_pStringReplace)(get_label(pButton)));
             }
-            if (gtk_button_get_use_underline(pButton))
+            if (gtk_button_get_use_underline(pButton) && !gtk_button_get_use_stock(pButton))
                 m_aMnemonicButtons.push_back(pButton);
         }
         else if (GTK_IS_LABEL(pWidget))


More information about the Libreoffice-commits mailing list