[Libreoffice-commits] core.git: vcl/unx
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Thu Sep 16 09:49:21 UTC 2021
vcl/unx/gtk4/convert3to4.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 237308204b75289b7ed53ae6e394312422120368
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Sep 16 09:32:03 2021 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Sep 16 11:48:47 2021 +0200
gtk4: set newly available always-show-arrow property
since 4.4
Change-Id: I6d7d0077617077606a7ef48f22183fcd3ca69c88
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122181
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 b1e1752d8ec4..5ffb37a700f0 100644
--- a/vcl/unx/gtk4/convert3to4.cxx
+++ b/vcl/unx/gtk4/convert3to4.cxx
@@ -730,6 +730,12 @@ ConvertResult Convert3To4(const css::uno::Reference<css::xml::dom::XNode>& xNode
if (sName == "draw-indicator")
{
assert(toBool(xChild->getFirstChild()->getNodeValue()));
+ if (GetParentObjectType(xChild) == "GtkMenuButton")
+ {
+ auto xDoc = xChild->getOwnerDocument();
+ auto xAlwaysShowArrow = CreateProperty(xDoc, "always-show-arrow", "True");
+ xChild->getParentNode()->insertBefore(xAlwaysShowArrow, xChild);
+ }
xRemoveList.push_back(xChild);
}
More information about the Libreoffice-commits
mailing list