GtkLabelAccessible: Initialize link before setting parent

Since at-spi-atk commit 96621a5e95 fixed PropertyChange notifications
for AccessibleParent, setting the parent will result in a call to
ref_state_set() which assumes that the object is fully initialized.

https://bugzilla.gnome.org/show_bug.cgi?id=774939
This commit is contained in:
Florian Müllner 2016-11-23 16:34:15 +01:00 committed by Matthias Clasen
parent c14c9aca34
commit 593b75fb69

View File

@ -158,8 +158,8 @@ gtk_label_accessible_link_impl_new (GtkLabelAccessible *label,
GtkLabelAccessibleLinkImpl *impl;
impl = g_object_new (_gtk_label_accessible_link_impl_get_type (), NULL);
atk_object_set_parent (ATK_OBJECT (impl), ATK_OBJECT (label));
impl->link = gtk_label_accessible_link_new (label, idx);
atk_object_set_parent (ATK_OBJECT (impl), ATK_OBJECT (label));
return impl;
}