[Libreoffice-commits] core.git: vcl/unx
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Tue Jul 6 13:20:25 UTC 2021
vcl/unx/gtk4/convert3to4.cxx | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit 55eaa0a147b156e02c39a8e8194bc90a27211ec9
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Jul 6 11:25:12 2021 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Jul 6 15:19:46 2021 +0200
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 at redhat.com>
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")
{
More information about the Libreoffice-commits
mailing list