frame: Use the group role
authorMatthias Clasen <mclasen@redhat.com>
Wed, 21 Jun 2023 01:57:50 +0000 (21:57 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 21 Jun 2023 01:58:55 +0000 (21:58 -0400)
gtk/gtkframe.c

index 041e05c91c5e878375f064d87ba2c6bbc2a400c7..f938b3312748c4d18c57700a0adc32e0676ea8b4 100644 (file)
  * `GtkFrame` has a main CSS node with name “frame”, which is used to draw the
  * visible border. You can set the appearance of the border using CSS properties
  * like “border-style” on this node.
+ *
+ * # Accessibility
+ *
+ * `GtkFrame` uses the `GTK_ACCESSIBLE_ROLE_GROUP` role.
  */
 
 typedef struct
@@ -203,6 +207,7 @@ gtk_frame_class_init (GtkFrameClass *class)
   g_object_class_install_properties (gobject_class, LAST_PROP, frame_props);
 
   gtk_widget_class_set_css_name (widget_class, I_("frame"));
+  gtk_widget_class_set_accessible_role (widget_class, GTK_ACCESSIBLE_ROLE_GROUP);
 }
 
 static GtkBuildableIface *parent_buildable_iface;