Class method


since: 3.2

Declaration [src]

gtk_widget_class_set_accessible_role (
  GtkWidgetClass* widget_class,
  AtkRole role

Description [src]

Sets the default AtkRole to be set on accessibles created for widgets of widget_class. Accessibles may decide to not honor this setting if their role reporting is more refined. Calls to gtk_widget_class_set_accessible_type() will reset this value.

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

If role is #ATK_ROLE_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.

Available since: 3.2



Type: AtkRole

The role to use for accessibles created for widget_class.