083c9ff
From 27328034f5e2644b4a0287532e762e87ea36c4a0 Mon Sep 17 00:00:00 2001
083c9ff
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
083c9ff
Date: Thu, 21 Jul 2016 11:55:13 +0100
083c9ff
Subject: [PATCH] gtk3-a11y: our eventbox is inside a grid now
083c9ff
083c9ff
Change-Id: Icb49d6274b09fb426ab6c0f9f67b7c71c4ef9a31
083c9ff
---
083c9ff
 vcl/unx/gtk/a11y/atkfactory.cxx | 6 +++++-
083c9ff
 1 file changed, 5 insertions(+), 1 deletion(-)
083c9ff
083c9ff
diff --git a/vcl/unx/gtk/a11y/atkfactory.cxx b/vcl/unx/gtk/a11y/atkfactory.cxx
083c9ff
index bca68a6..2f51f14 100644
083c9ff
--- a/vcl/unx/gtk/a11y/atkfactory.cxx
083c9ff
+++ b/vcl/unx/gtk/a11y/atkfactory.cxx
083c9ff
@@ -109,7 +109,11 @@ wrapper_factory_create_accessible( GObject *obj )
083c9ff
     if (!pEventBox)
083c9ff
         return atk_noop_object_wrapper_new();
083c9ff
 
083c9ff
-    GtkWidget* pTopLevel = gtk_widget_get_parent(pEventBox);
083c9ff
+    GtkWidget* pTopLevelGrid = gtk_widget_get_parent(pEventBox);
083c9ff
+    if (!pTopLevelGrid)
083c9ff
+        return atk_noop_object_wrapper_new();
083c9ff
+
083c9ff
+    GtkWidget* pTopLevel = gtk_widget_get_parent(pTopLevelGrid);
083c9ff
     if (!pTopLevel)
083c9ff
         return atk_noop_object_wrapper_new();
083c9ff
 #else
083c9ff
-- 
083c9ff
2.7.4
083c9ff