[libadwaita/wip/exalm/a11y-fixes: 6/11] shadow-helper: Set up widget roles
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/a11y-fixes: 6/11] shadow-helper: Set up widget roles
- Date: Mon, 27 Dec 2021 13:16:35 +0000 (UTC)
commit 6936a789b9a96a7045df2ed71de0b466ca4ae12f
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Mon Dec 27 17:49:49 2021 +0500
shadow-helper: Set up widget roles
src/adw-shadow-helper.c | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/src/adw-shadow-helper.c b/src/adw-shadow-helper.c
index 019d5ed4..a41860c7 100644
--- a/src/adw-shadow-helper.c
+++ b/src/adw-shadow-helper.c
@@ -37,10 +37,14 @@ adw_shadow_helper_constructed (GObject *object)
{
AdwShadowHelper *self = ADW_SHADOW_HELPER (object);
- self->dimming = adw_gizmo_new ("dimming", NULL, NULL, NULL, NULL, NULL, NULL);
- self->shadow = adw_gizmo_new ("shadow", NULL, NULL, NULL, NULL, NULL, NULL);
- self->border = adw_gizmo_new ("border", NULL, NULL, NULL, NULL, NULL, NULL);
- self->outline = adw_gizmo_new ("outline", NULL, NULL, NULL, NULL, NULL, NULL);
+ self->dimming = adw_gizmo_new_with_role ("dimming", GTK_ACCESSIBLE_ROLE_PRESENTATION,
+ NULL, NULL, NULL, NULL, NULL, NULL);
+ self->shadow = adw_gizmo_new_with_role ("shadow", GTK_ACCESSIBLE_ROLE_PRESENTATION,
+ NULL, NULL, NULL, NULL, NULL, NULL);
+ self->border = adw_gizmo_new_with_role ("border", GTK_ACCESSIBLE_ROLE_PRESENTATION,
+ NULL, NULL, NULL, NULL, NULL, NULL);
+ self->outline = adw_gizmo_new_with_role ("outline", GTK_ACCESSIBLE_ROLE_PRESENTATION,
+ NULL, NULL, NULL, NULL, NULL, NULL);
gtk_widget_set_child_visible (self->dimming, FALSE);
gtk_widget_set_child_visible (self->shadow, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]