[Libreoffice-commits] core.git: vcl/unx
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Mon May 24 15:57:25 UTC 2021
vcl/unx/gtk3/gtkinst.cxx | 10 ++++++++++
1 file changed, 10 insertions(+)
New commits:
commit 0c31dd6f4ee14a8dc41159ce4e18a7d299d0a341
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon May 24 16:02:18 2021 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon May 24 17:56:44 2021 +0200
gtk4: transform GtkScrolledWindow shadow-type to has-frame
Change-Id: Ib9970bad9fbf32def0bcea6ffde42e4204dd4a06
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116063
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 dac7738075f4..90c36c060476 100644
--- a/vcl/unx/gtk3/gtkinst.cxx
+++ b/vcl/unx/gtk3/gtkinst.cxx
@@ -18345,6 +18345,15 @@ bool ConvertTree(const Reference<css::xml::dom::XNode>& xNode)
{
if (GetParentObjectType(xChild) == "GtkFrame")
xRemoveList.push_back(xChild);
+ else if (GetParentObjectType(xChild) == "GtkScrolledWindow")
+ {
+ bool bHasFrame = xChild->getFirstChild()->getNodeValue() != "none";
+ auto xDoc = xChild->getOwnerDocument();
+ auto xHasFrame = CreateProperty(xDoc, "has-frame",
+ bHasFrame ? OUString("True") : OUString("False"));
+ xChild->getParentNode()->insertBefore(xHasFrame, xChild);
+ xRemoveList.push_back(xChild);
+ }
}
if (sName == "relief")
@@ -19627,6 +19636,7 @@ weld::Builder* GtkInstance::CreateBuilder(weld::Widget* pParent, const OUString&
#if GTK_CHECK_VERSION(4, 0, 0)
if (rUIFile != "cui/ui/hyphenate.ui" &&
rUIFile != "cui/ui/percentdialog.ui" &&
+ rUIFile != "cui/ui/signatureline.ui" &&
rUIFile != "sfx/ui/querysavedialog.ui" &&
rUIFile != "cui/ui/tipofthedaydialog.ui" &&
rUIFile != "sfx/ui/licensedialog.ui" &&
More information about the Libreoffice-commits
mailing list