[gtk: 1/2] Mention that after setting a button child the user is responsible for a11y relations




commit da20c68d480c2d87de94e47200cf738cabb9e3ed
Author: Lukáš Tyrychtr <lukastyrychtr gmail com>
Date:   Mon Sep 20 10:52:16 2021 +0200

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

 gtk/gtkbutton.c | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c
index 49f0681767..f02ca168bc 100644
--- a/gtk/gtkbutton.c
+++ b/gtk/gtkbutton.c
@@ -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,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]