summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-01-24 12:34:12 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-01-24 15:57:16 +0100
commit2bec949e85dc058b2e9009b2b7eb03745a5be71b (patch)
treedcc92c9ddf1632d67615382059728518576415a1
parente2ff4206d60df486bf02931ce69c47857de6b04e (diff)
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 <caolanm@redhat.com>
-rw-r--r--vcl/unx/gtk3/gtkinst.cxx4
1 files changed, 4 insertions, 0 deletions
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