set_accessible_role


Description:

[ CCode ( cname = "gtk_widget_class_set_accessible_role" ) ]
[ Version ( since = "3.2" ) ]
public class void set_accessible_role (Role role)

Sets the default Role to be set on accessibles created for widgets of this.

Accessibles may decide to not honor this setting if their role reporting is more refined. Calls to set_accessible_type will reset this value.

In cases where you want more fine-grained control over the role of accessibles created for this, you should provide your own accessible type and use set_accessible_type instead.

If role is INVALID, the default role will not be changed and the accessible’s default role will be used instead.

This function should only be called from class init functions of widgets.

Parameters:

this

class to set the accessible role for

role

The role to use for accessibles created for this