We can't set the display if we don't have a root,
but the default display is more than good enough
for the tests which otherwise would need to do
quite a bit more setup work to make their test
widgets rooted.
}
gtk_at_context_set_accessible_role (priv->at_context, role);
- gtk_at_context_set_display (priv->at_context, gtk_root_get_display (priv->root));
+ if (priv->root)
+ gtk_at_context_set_display (priv->at_context, gtk_root_get_display (priv->root));
}
static void