Commit 3d5e4003 authored by Christian Persch's avatar Christian Persch

a11y: Fix introspection dump

During introspection dump, the a11y object class is a dummy, not
derived from GtkAccessibleClass, so this class cast lead to a
critical.

https://bugzilla.gnome.org/show_bug.cgi?id=760896
parent edbb3749
...@@ -538,13 +538,16 @@ gucharmap_chartable_accessible_class_init (GucharmapChartableAccessibleClass *kl ...@@ -538,13 +538,16 @@ gucharmap_chartable_accessible_class_init (GucharmapChartableAccessibleClass *kl
{ {
GObjectClass *gobject_class = G_OBJECT_CLASS (klass); GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
AtkObjectClass *atk_object_class = ATK_OBJECT_CLASS (klass); AtkObjectClass *atk_object_class = ATK_OBJECT_CLASS (klass);
GtkAccessibleClass *accessible_class = GTK_ACCESSIBLE_CLASS (klass);
gucharmap_chartable_accessible_parent_class = g_type_class_peek_parent (klass); gucharmap_chartable_accessible_parent_class = g_type_class_peek_parent (klass);
gobject_class->finalize = gucharmap_chartable_accessible_finalize; gobject_class->finalize = gucharmap_chartable_accessible_finalize;
accessible_class->connect_widget_destroyed = gucharmap_chartable_accessible_connect_widget_destroyed; /* This is normally true, except during introspection dump */
if (GTK_IS_ACCESSIBLE_CLASS (klass)) {
GtkAccessibleClass *accessible_class = GTK_ACCESSIBLE_CLASS (klass);
accessible_class->connect_widget_destroyed = gucharmap_chartable_accessible_connect_widget_destroyed;
}
atk_object_class->get_n_children = gucharmap_chartable_accessible_get_n_children; atk_object_class->get_n_children = gucharmap_chartable_accessible_get_n_children;
atk_object_class->ref_child = gucharmap_chartable_accessible_ref_child; atk_object_class->ref_child = gucharmap_chartable_accessible_ref_child;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment