summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-08-15 13:14:08 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-08-15 20:22:24 +0200
commitf3b0a95f9c2f85604808c21485e46e43aebbbfed (patch)
tree523480c1796f4af6445890c6f035b55de61a07d0
parentpass SwNode and sal_Int32 to deleteMarks (diff)
downloadcore-f3b0a95f9c2f85604808c21485e46e43aebbbfed.tar.gz
core-f3b0a95f9c2f85604808c21485e46e43aebbbfed.zip
fix "invalid class cast from 'OOoAtkObj' to 'GtkWidgetAccessible'"
and similar Change-Id: I8a989465057a5b7810f6cedf370fc1cd77f5af0e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138311 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--vcl/unx/gtk3/a11y/atkwrapper.cxx2
-rw-r--r--vcl/unx/gtk3/a11y/atkwrapper.hxx3
2 files changed, 3 insertions, 2 deletions
diff --git a/vcl/unx/gtk3/a11y/atkwrapper.cxx b/vcl/unx/gtk3/a11y/atkwrapper.cxx
index 735b53c3edbe..329e903a6836 100644
--- a/vcl/unx/gtk3/a11y/atkwrapper.cxx
+++ b/vcl/unx/gtk3/a11y/atkwrapper.cxx
@@ -702,7 +702,7 @@ atk_object_wrapper_get_type()
reinterpret_cast<GInstanceInitFunc>(atk_object_wrapper_init),
nullptr
} ;
- type = g_type_register_static (ATK_TYPE_OBJECT,
+ type = g_type_register_static (GTK_TYPE_WIDGET_ACCESSIBLE,
"OOoAtkObj",
&typeInfo, GTypeFlags(0)) ;
}
diff --git a/vcl/unx/gtk3/a11y/atkwrapper.hxx b/vcl/unx/gtk3/a11y/atkwrapper.hxx
index d67ea2480e4d..906e6f0c9414 100644
--- a/vcl/unx/gtk3/a11y/atkwrapper.hxx
+++ b/vcl/unx/gtk3/a11y/atkwrapper.hxx
@@ -47,7 +47,8 @@ namespace com::sun::star::accessibility {
struct AtkObjectWrapper
{
- AtkObject aParent;
+ GtkWidgetAccessible aParent;
+
AtkObject* mpOrig; //if we're a GtkDrawingArea acting as a custom LibreOffice widget, this is the toolkit default impl
AtkObject* mpSysObjChild; //if we're a container for a sysobj, then this is the sysobj native gtk AtkObject