vcl/unx/gtk3/gtkinst.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 2bec949e85dc058b2e9009b2b7eb03745a5be71b
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Mon Jan 24 12:34:12 2022 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Mon Jan 24 15:57:16 2022 +0100

    gtk4: use help-browser-symbolic for wizard help button too
    
    Change-Id: Icf16311cecf2b76afe62e4a415d7887864518bc1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128864
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx
index ebc162dfcf65..796ea1f37844 100644
--- a/vcl/unx/gtk3/gtkinst.cxx
+++ b/vcl/unx/gtk3/gtkinst.cxx
@@ -7324,7 +7324,11 @@ public:
         gtk_box_pack_end(GTK_BOX(m_pButtonBox), GTK_WIDGET(m_pFinish), false, 
false, 0);
 #endif
 
+#if GTK_CHECK_VERSION(4, 0, 0)
+        m_pHelp = 
GTK_BUTTON(gtk_button_new_from_icon_name("help-browser-symbolic"));
+#else
         m_pHelp = 
GTK_BUTTON(gtk_button_new_with_mnemonic(MapToGtkAccelerator(GetStandardText(StandardButtonType::Help)).getStr()));
+#endif
 #if !GTK_CHECK_VERSION(4, 0, 0)
         gtk_widget_set_can_default(GTK_WIDGET(m_pHelp), true);
 #endif

Reply via email to