GNOME Bugzilla – Bug 760945
st-widget: Avoid passing NULL to atk_object_get_role()
Last modified: 2016-01-21 17:21:06 UTC
I was getting my logs filled with critical warnings...
Created attachment 319508 [details] [review] st-widget: Fix a potentially infinite recursion Commit ffe4eaf00d8780bdc6fb3d7aca3eda847e887007 changed this code to call st_widget_get_accessible_role() instead of using the value directly which would be an infinite recursion if that function didn't have a bug. As it is, this just resulted in CRITICAL **: atk_object_get_role: assertion 'ATK_IS_OBJECT (accessible)' failed
Created attachment 319509 [details] [review] st-widget: Avoid passing NULL to atk_object_get_role() This never worked since the code landed but apparently no-one noticed until now. The intent here is to return the accessible's default role if none has been explicitly set on the StWidget instance.
Review of attachment 319509 [details] [review]: Jeez. Pretty obviously correct.
Review of attachment 319508 [details] [review]: Yep.
Attachment 319508 [details] pushed as b87da87 - st-widget: Fix a potentially infinite recursion Attachment 319509 [details] pushed as c25c143 - st-widget: Avoid passing NULL to atk_object_get_role()