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

This commit is contained in:
Lukáš Tyrychtr
2021-09-20 10:52:16 +02:00
parent d19f4ad53a
commit da20c68d48

View File

@@ -1035,6 +1035,12 @@ gtk_button_get_action_helper (GtkButton *button)
* @child: (nullable): the child widget
*
* 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
gtk_button_set_child (GtkButton *button,