Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pellegrino Prevete
libhandy
Commits
7333a5e0
Commit
7333a5e0
authored
Nov 06, 2018
by
Adrien Plazas
Committed by
Guido Gunther
Nov 14, 2018
Browse files
Set relevant ATK roles
This will help the widgets to be more accessible.
parent
9c99704e
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/hdy-arrows.c
View file @
7333a5e0
...
...
@@ -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"
);
}
...
...
src/hdy-dialer.c
View file @
7333a5e0
...
...
@@ -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"
);
}
...
...
src/hdy-leaflet.c
View file @
7333a5e0
...
...
@@ -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"
);
}
...
...
src/hdy-title-bar.c
View file @
7333a5e0
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment