stackswitcher: Use a composite accessible

This makes the buttons show up in the a11y tree again.
This commit is contained in:
Matthias Clasen 2020-02-05 23:06:47 -05:00
parent d01070d472
commit 145ccfe1c4

View File

@ -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);
}
/**