[Libreoffice-commits] core.git: vcl/unx

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri May 28 14:48:32 UTC 2021


 vcl/unx/gtk3/gtkinst.cxx |   17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

New commits:
commit 7a9a1ca7a0a82407b869b76d96d820864d98dcad
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri May 28 14:00:38 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri May 28 16:47:47 2021 +0200

    gtk4: remove 'homogeneous' on conversion to GtkHeaderBar
    
    Change-Id: I5dcf6a186ecf22b0a0d7ba624c2adf737d0a7852
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116339
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx
index 21a8c1c56222..5c5fbde02249 100644
--- a/vcl/unx/gtk3/gtkinst.cxx
+++ b/vcl/unx/gtk3/gtkinst.cxx
@@ -20952,9 +20952,10 @@ ConvertResult Convert3To4(const Reference<css::xml::dom::XNode>& xNode)
 
                             xContentAreaCandidate->getParentNode()->insertBefore(xActionArea, xContentAreaCandidate);
 
-                            for (css::uno::Reference<css::xml::dom::XNode> xTitleChild = xChild->getFirstChild();
-                                 xTitleChild.is(); xTitleChild = xTitleChild->getNextSibling())
+                            css::uno::Reference<css::xml::dom::XNode> xTitleChild = xChild->getFirstChild();
+                            while(xTitleChild.is())
                             {
+                                auto xNextTitleChild = xTitleChild->getNextSibling();
                                 if (xTitleChild->getNodeName() == "child")
                                 {
                                     css::uno::Reference<css::xml::dom::XElement> xChildElem(xTitleChild, css::uno::UNO_QUERY_THROW);
@@ -20981,6 +20982,16 @@ ConvertResult Convert3To4(const Reference<css::xml::dom::XNode>& xNode)
                                         xChildElem->setAttributeNode(xTypeEnd);
                                     }
                                 }
+                                else if (xTitleChild->getNodeName() == "property")
+                                {
+                                    // remove any <property name="homogeneous"> tag
+                                    css::uno::Reference<css::xml::dom::XNamedNodeMap> xTitleChildMap = xTitleChild->getAttributes();
+                                    css::uno::Reference<css::xml::dom::XNode> xPropName = xTitleChildMap->getNamedItem("name");
+                                    OUString sPropName(xPropName->getNodeValue().replace('_', '-'));
+                                    if (sPropName == "homogeneous")
+                                        xChild->removeChild(xTitleChild);
+                                }
+                                xTitleChild = xNextTitleChild;
                             }
 
                             break;
@@ -22011,6 +22022,8 @@ weld::Builder* GtkInstance::CreateBuilder(weld::Widget* pParent, const OUString&
         rUIFile != "sfx/ui/securityinfopage.ui" &&
         rUIFile != "svt/ui/javadisableddialog.ui" &&
         rUIFile != "svx/ui/fontworkgallerydialog.ui" &&
+        rUIFile != "modules/scalc/ui/dataform.ui" &&
+        rUIFile != "modules/scalc/ui/dataformfragment.ui" &&
         rUIFile != "modules/scalc/ui/definedatabaserangedialog.ui" &&
         rUIFile != "modules/scalc/ui/deletecells.ui" &&
         rUIFile != "modules/scalc/ui/deletecontents.ui" &&


More information about the Libreoffice-commits mailing list