vcl/unx/gtk4/convert3to4.cxx |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit 55eaa0a147b156e02c39a8e8194bc90a27211ec9
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Tue Jul 6 11:25:12 2021 +0100
Commit:     Caolán McNamara <caol...@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 <caol...@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")
             {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to