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

New commits:
commit 80f37b8fdc9b3bf39abe437b016cdc69f836058a
Author:     Caolán McNamara <[email protected]>
AuthorDate: Tue Jun 8 17:16:01 2021 +0100
Commit:     Caolán McNamara <[email protected]>
CommitDate: Wed Jun 9 10:14:56 2021 +0200

    gtk4: default that empty button labels are invisible
    
    Change-Id: If64e9592b48ac376933aac1e30ef76b096a3a0ee
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116859
    Tested-by: Caolán McNamara <[email protected]>
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/vcl/unx/gtk4/convert3to4.cxx b/vcl/unx/gtk4/convert3to4.cxx
index a5282b0cece7..46f5c831b828 100644
--- a/vcl/unx/gtk4/convert3to4.cxx
+++ b/vcl/unx/gtk4/convert3to4.cxx
@@ -1156,8 +1156,15 @@ ConvertResult Convert3To4(const 
css::uno::Reference<css::xml::dom::XNode>& xNode
                 xLabelClassName->setValue("GtkLabel");
                 xNewChildObjectNode->setAttributeNode(xLabelClassName);
                 if (xChildPropertyLabel)
+                {
                     xNewChildObjectNode->appendChild(
                         
xChildPropertyLabel->getParentNode()->removeChild(xChildPropertyLabel));
+                }
+                else
+                {
+                    auto xNotVisible = CreateProperty(xDoc, "visible", 
"False");
+                    xNewChildObjectNode->appendChild(xNotVisible);
+                }
                 if (bChildUseUnderline)
                 {
                     auto xUseUnderline = CreateProperty(xDoc, "use-underline", 
"True");
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to