GNOME Bugzilla – Bug 766458
widget: fix GtkLabelAccessible NULL links.
Last modified: 2016-05-15 14:28:27 UTC
Created attachment 327901 [details] [review]
set widget accessible early on
Fix testsuite/a11y/about.ui GtkAboutDialog :
"CRITICAL **: atk_hyperlink_get_start_index: assertion 'ATK_IS_HYPERLINK (link)' failed"
That is set widget->priv->accessible as soon as accessible object is generated.
When accessible object is created accessible->priv->widget is set,
If widget->priv->accessible is not , then _gtk_label_accessible_update_links
exits early, thus without creating the links on the accessible side.
(This as it checks for the widget to have the accessible set before proceeding).
The issue was introduced in commit ff3264b4c56196f5a0575b6595df81b66e5c30cc "widget: Store accessible in GtkWidgetPrivate" by a move of this initialization out of the condition (as to merge identical statements, though it hurts here).
sorry, the severity might be high but I have not tested the new code out of the testsuite so restore to default "normal" level.