[gtk/a11y-fixes: 3/12] stackswitcher: Use a composite accessible
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/a11y-fixes: 3/12] stackswitcher: Use a composite accessible
- Date: Thu, 6 Feb 2020 23:43:45 +0000 (UTC)
commit 145ccfe1c442de04a013b83a21919d79a2940d8b
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Feb 5 23:06:47 2020 -0500
stackswitcher: Use a composite accessible
This makes the buttons show up in the a11y tree again.
gtk/gtkstackswitcher.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/gtk/gtkstackswitcher.c b/gtk/gtkstackswitcher.c
index c9d30fecf1..aa4bf7f567 100644
--- a/gtk/gtkstackswitcher.c
+++ b/gtk/gtkstackswitcher.c
@@ -33,6 +33,8 @@
#include "gtktypebuiltins.h"
#include "gtkwidgetprivate.h"
+#include "a11y/gtkcompositeaccessible.h"
+
/**
* SECTION:gtkstackswitcher
* @Short_description: A controller for GtkStack
@@ -595,6 +597,7 @@ gtk_stack_switcher_class_init (GtkStackSwitcherClass *class)
gtk_widget_class_set_layout_manager_type (widget_class, GTK_TYPE_BOX_LAYOUT);
gtk_widget_class_set_css_name (widget_class, I_("stackswitcher"));
+ gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_COMPOSITE_ACCESSIBLE);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]