[gtk/a11y-fixes: 6/12] colorchooser: Use a composite accessible



commit bc682bef741ad1c58e0c7f2f7bc80966383dc3c3
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Feb 6 00:16:18 2020 -0500

    colorchooser: Use a composite accessible
    
    This makes the content show up in the a11y tree again.

 gtk/gtkcolorchooserwidget.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/gtk/gtkcolorchooserwidget.c b/gtk/gtkcolorchooserwidget.c
index a9c4f12962..85ec2ec817 100644
--- a/gtk/gtkcolorchooserwidget.c
+++ b/gtk/gtkcolorchooserwidget.c
@@ -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 */


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