summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk/a11y
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-05-30 16:26:40 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-05-30 22:29:32 +0200
commitfd52a23e4428bd9447643fd9c9c58905a4e7250b (patch)
treee0b82f11cc8c60c550c7724fa4e14a6fb9a5debf /vcl/unx/gtk/a11y
parent0258bcdedd710d78de99c9cefc9d8c3e2ca85fdf (diff)
tdf#117859 crash in Tab Color a11y
Change-Id: I935f0b1a28b483fad70caf7af96742dee74916ad Reviewed-on: https://gerrit.libreoffice.org/55087 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/unx/gtk/a11y')
-rw-r--r--vcl/unx/gtk/a11y/atkwrapper.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/vcl/unx/gtk/a11y/atkwrapper.hxx b/vcl/unx/gtk/a11y/atkwrapper.hxx
index c45f0f9c839b..381f3c074fdf 100644
--- a/vcl/unx/gtk/a11y/atkwrapper.hxx
+++ b/vcl/unx/gtk/a11y/atkwrapper.hxx
@@ -21,6 +21,10 @@
#define INCLUDED_VCL_UNX_GTK_A11Y_ATKWRAPPER_HXX
#include <atk/atk.h>
+#include <gtk/gtk.h>
+#if GTK_CHECK_VERSION(3,0,0)
+#include <gtk/gtk-a11y.h>
+#endif
#include <com/sun/star/accessibility/XAccessible.hpp>
extern "C" {
@@ -70,7 +74,11 @@ struct AtkObjectWrapper
struct AtkObjectWrapperClass
{
+#if GTK_CHECK_VERSION(3,0,0)
+ GtkWidgetAccessibleClass aParentClass;
+#else
AtkObjectClass aParentClass;
+#endif
};
GType atk_object_wrapper_get_type() G_GNUC_CONST;