diff options
author | sthibaul <sthibaul@web> | 2022-06-16 11:32:58 +0000 |
---|---|---|
committer | IkiWiki <ikiwiki.info> | 2022-06-16 11:32:58 +0000 |
commit | 2f52705e5b63e9b780701575589d2a87bcd96729 (patch) | |
tree | 802251f3e8c42b58bea5355ed411b027b9238fb8 /Accessibility | |
parent | 2a1f4cfe5874fb133a5585ed11034759fc41df07 (diff) |
Diffstat (limited to 'Accessibility')
-rw-r--r-- | Accessibility/MakingWidgetAccessible.mdwn | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Accessibility/MakingWidgetAccessible.mdwn b/Accessibility/MakingWidgetAccessible.mdwn index 1ac89ee2..959224c6 100644 --- a/Accessibility/MakingWidgetAccessible.mdwn +++ b/Accessibility/MakingWidgetAccessible.mdwn @@ -2,9 +2,9 @@ From federico on IRC: GtkLabel just does two things for accessibility: -1. Set its role on the GTK side to GTK_ACCESSIBLE_ROLE_LABEL in [[https://gitlab.gnome.org/GNOME/gtk/-/blob/8944493e/gtk/gtklabel.c#L2675]] +1. Set its role on the GTK side to GTK_ACCESSIBLE_ROLE_LABEL in the class initialization function gtk_label_class_init ([[https://gitlab.gnome.org/GNOME/gtk/-/blob/8944493e/gtk/gtklabel.c#L2675]]) - Later, that gets translated with gtk_accessible_role_to_atspi_role() to an AtspiRole enum value - [[https://gitlab.gnome.org/GNOME/gtk/-/blob/8944493e/gtk/a11y/gtkatspiutils.c#L38]] + Later, that gets translated with gtk_accessible_role_to_atspi_role() to an AtspiRole enum value in gtk_accessible_role_to_atspi_role ([[https://gitlab.gnome.org/GNOME/gtk/-/blob/8944493e/gtk/a11y/gtkatspiutils.c#L38]]) Those enum values in AtspiRole ([[https://gitlab.gnome.org/GNOME/gtk/-/blob/8944493e/gtk/a11y/gtkatspiprivate.h#L27-158]]) correspond to the integer values that the Accessible.GetRole() method expects ([[https://gitlab.gnome.org/GNOME/gtk/-/blob/8944493e/gtk/a11y/atspi/Accessible.xml#L40]]), and which are unfortunately just hardcoded in atspi-constants.h ([[https://gitlab.gnome.org/GNOME/at-spi2-core/-/blob/master/atspi/atspi-constants.h]]) |