diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-04-23 20:52:42 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-04-24 09:54:08 +0200 |
commit | 46581021108cc1f634ffc69c2776584d1f2847d1 (patch) | |
tree | aed08c0530e74670b88d9b5d63a61eaf5f14fe05 /vcl | |
parent | 946fee3ef1e319ad63a599b72dbd55ef52cbc640 (diff) |
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@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkinst.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |