From 55eaa0a147b156e02c39a8e8194bc90a27211ec9 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 6 Jul 2021 11:25:12 +0100 Subject: gtk4: add style of class toolbar to GtkBox replacing GtkToolbar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I4b21fc7081f1037be610148fd032b257fdc698af Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118475 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- vcl/unx/gtk4/convert3to4.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'vcl/unx/gtk4') diff --git a/vcl/unx/gtk4/convert3to4.cxx b/vcl/unx/gtk4/convert3to4.cxx index aca454d6786a..011ffadbb5e4 100644 --- a/vcl/unx/gtk4/convert3to4.cxx +++ b/vcl/unx/gtk4/convert3to4.cxx @@ -1132,6 +1132,14 @@ ConvertResult Convert3To4(const css::uno::Reference& xNode else if (sClass == "GtkToolbar") { xClass->setNodeValue("GtkBox"); + css::uno::Reference xStyle = xDoc->createElement("style"); + css::uno::Reference xToolbarClass + = xDoc->createElement("class"); + css::uno::Reference xPropName = xDoc->createAttribute("name"); + xPropName->setValue("toolbar"); + xToolbarClass->setAttributeNode(xPropName); + xStyle->appendChild(xToolbarClass); + xChild->appendChild(xStyle); } else if (sClass == "GtkToolButton") { -- cgit