diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-07-06 11:25:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-07-06 15:19:46 +0200 |
commit | 55eaa0a147b156e02c39a8e8194bc90a27211ec9 (patch) | |
tree | d1a1f3f1e65428464b0c08d4bbafd368d2899b10 /vcl/unx/gtk4 | |
parent | fc98f9a0cd88543f7c053e57023c6c353a3fa429 (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>
Diffstat (limited to 'vcl/unx/gtk4')
-rw-r--r-- | vcl/unx/gtk4/convert3to4.cxx | 8 |
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") { |