Commit 7333a5e0 authored by Adrien Plazas's avatar Adrien Plazas Committed by Guido Gunther

Set relevant ATK roles

This will help the widgets to be more accessible.
parent 9c99704e
......@@ -451,6 +451,7 @@ hdy_arrows_class_init (HdyArrowsClass *klass)
(G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
gtk_widget_class_install_style_property (widget_class, style_properties [STYLE_PROP_THICKNESS]);
gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_ARROW);
gtk_widget_class_set_css_name (widget_class, "hdyarrows");
}
......
......@@ -518,6 +518,7 @@ hdy_dialer_class_init (HdyDialerClass *klass)
gtk_widget_class_bind_template_child_private (widget_class, HdyDialer, btn_submit);
gtk_widget_class_bind_template_child_private (widget_class, HdyDialer, btn_del);
gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_DIAL);
gtk_widget_class_set_css_name (widget_class, "hdydialer");
}
......
......@@ -2845,6 +2845,7 @@ hdy_leaflet_class_init (HdyLeafletClass *klass)
gtk_container_class_install_child_properties (container_class, LAST_CHILD_PROP, child_props);
gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_PANEL);
gtk_widget_class_set_css_name (widget_class, "hdyleaflet");
}
......
......@@ -188,6 +188,7 @@ hdy_title_bar_class_init (HdyTitleBarClass *klass)
g_object_class_install_properties (object_class, LAST_PROP, props);
gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_TITLE_BAR);
/* Adwaita states it expects a headerbar to be the top-level titlebar widget,
* so style-wise HdyTitleBar pretends to be one as its role is to be the
* top-level titlebar widget.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment