fix crash with gtk_accessible_role_to_name and GTK_ACCESSIBLE_ROLE_TOGGLE_BUTTON
authorCaolán McNamara <caolanm@redhat.com>
Tue, 21 Mar 2023 15:04:12 +0000 (15:04 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 21 Apr 2023 06:32:22 +0000 (08:32 +0200)
presumably since:

commit de80f503e4db282a7343aa16d2803967d4179739
Date:   Thu Feb 23 14:22:20 2023 +0100

    a11y: Introduce a dedicated role for toggle buttons

gtk/gtkaccessible.c

index dad85e2e00897997846a385584b1cfcf3dc6b5e7..4cba3b637f68dcc869889fc1c4225b015b9e50ff 100644 (file)
@@ -830,6 +830,7 @@ static const char *role_names[] = {
   [GTK_ACCESSIBLE_ROLE_TREE_ITEM] = NC_("accessibility", "tree item"),
   [GTK_ACCESSIBLE_ROLE_WIDGET] = NC_("accessibility", "widget"),
   [GTK_ACCESSIBLE_ROLE_WINDOW] = NC_("accessibility", "window"),
+  [GTK_ACCESSIBLE_ROLE_TOGGLE_BUTTON] = NC_("accessibility", "toggle button"),
 };
 
 /*< private >