colorchooser: Use a composite accessible
authorMatthias Clasen <mclasen@redhat.com>
Thu, 6 Feb 2020 05:16:18 +0000 (00:16 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 6 Feb 2020 21:54:59 +0000 (16:54 -0500)
This makes the content show up in the a11y tree again.

gtk/gtkcolorchooserwidget.c

index a9c4f129620ea8c827c611cb359044698affa26e..85ec2ec817daf617426f29c94f7c58be3002c35c 100644 (file)
@@ -31,6 +31,8 @@
 #include "gtkstylecontext.h"
 #include "gtkboxlayout.h"
 
+#include "a11y/gtkcompositeaccessible.h"
+
 #include <math.h>
 
 /**
@@ -745,6 +747,8 @@ gtk_color_chooser_widget_class_init (GtkColorChooserWidgetClass *class)
    */
   gtk_widget_class_install_action (widget_class, "color.customize", "(dddd)",
                                    gtk_color_chooser_widget_activate_color_customize);
+
+  gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_COMPOSITE_ACCESSIBLE);
 }
 
 /* GtkColorChooser implementation {{{1 */