summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-07-06 11:25:12 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-07-06 15:19:46 +0200
commit55eaa0a147b156e02c39a8e8194bc90a27211ec9 (patch)
treed1a1f3f1e65428464b0c08d4bbafd368d2899b10
parentfc98f9a0cd88543f7c053e57023c6c353a3fa429 (diff)
gtk4: add style of class toolbar to GtkBox replacing GtkToolbar
Change-Id: I4b21fc7081f1037be610148fd032b257fdc698af Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118475 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--vcl/unx/gtk4/convert3to4.cxx8
1 files changed, 8 insertions, 0 deletions
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<css::xml::dom::XNode>& xNode
else if (sClass == "GtkToolbar")
{
xClass->setNodeValue("GtkBox");
+ css::uno::Reference<css::xml::dom::XElement> xStyle = xDoc->createElement("style");
+ css::uno::Reference<css::xml::dom::XElement> xToolbarClass
+ = xDoc->createElement("class");
+ css::uno::Reference<css::xml::dom::XAttr> xPropName = xDoc->createAttribute("name");
+ xPropName->setValue("toolbar");
+ xToolbarClass->setAttributeNode(xPropName);
+ xStyle->appendChild(xToolbarClass);
+ xChild->appendChild(xStyle);
}
else if (sClass == "GtkToolButton")
{