Merge branch 'mention_a11y_concern' into 'master'

Mention that after setting a button child the user is responsible for a11y relations

See merge request GNOME/gtk!3981
This commit is contained in:
Matthias Clasen 2021-09-20 12:15:44 +00:00
commit 4b582851f7

View File

@ -1035,6 +1035,12 @@ gtk_button_get_action_helper (GtkButton *button)
* @child: (nullable): the child widget * @child: (nullable): the child widget
* *
* Sets the child widget of @button. * Sets the child widget of @button.
*
* Note that by using this API, you take full responsibility for setting
* up the proper accessibility label and description information for @button.
* Most likely, you'll either set the accessibility label or description
* for @button explicitly, or you'll set a labelled-by or described-by
* relations from @child to @button.
*/ */
void void
gtk_button_set_child (GtkButton *button, gtk_button_set_child (GtkButton *button,