diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-07-06 16:46:36 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-07-07 09:26:59 +0200 |
commit | 91d971c6dc0ba4753ba3e1939b0b65b09469f739 (patch) | |
tree | 1d6a1435397fab5d82c1be2276a3e1066e2dd19c /vcl/unx/gtk4/convert3to4.cxx | |
parent | ffe05ff05cecfa38390df9b2e218b37b34324b62 (diff) |
gtk4: convert GtkMenuToolButton to GtkMenuButton
Change-Id: I5b11e49e5eab68926b76814a07718e761fc6beda
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118521
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/unx/gtk4/convert3to4.cxx')
-rw-r--r-- | vcl/unx/gtk4/convert3to4.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/vcl/unx/gtk4/convert3to4.cxx b/vcl/unx/gtk4/convert3to4.cxx index 00620439f39b..5c8cc1dec71e 100644 --- a/vcl/unx/gtk4/convert3to4.cxx +++ b/vcl/unx/gtk4/convert3to4.cxx @@ -441,8 +441,11 @@ ConvertResult Convert3To4(const css::uno::Reference<css::xml::dom::XNode>& xNode if (sName == "label") { OUString sParentClass = GetParentObjectType(xChild); - if (sParentClass == "GtkToolButton" || sParentClass == "GtkToggleToolButton") + if (sParentClass == "GtkToolButton" || sParentClass == "GtkMenuToolButton" + || sParentClass == "GtkToggleToolButton") + { xName->setNodeValue("tooltip-text"); + } xPropertyLabel = xChild; } @@ -1152,6 +1155,10 @@ ConvertResult Convert3To4(const css::uno::Reference<css::xml::dom::XNode>& xNode { xClass->setNodeValue("GtkButton"); } + else if (sClass == "GtkMenuToolButton") + { + xClass->setNodeValue("GtkMenuButton"); + } else if (sClass == "GtkToggleToolButton") { xClass->setNodeValue("GtkToggleButton"); |