[libadwaita/wip/exalm/a11y-fixes: 9/14] shadow-helper: Set up widget roles
- From: Christopher Davis <christopherdavis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/a11y-fixes: 9/14] shadow-helper: Set up widget roles
- Date: Mon, 27 Dec 2021 18:37:43 +0000 (UTC)
commit f0c006466df5137fd4a2e9c5584f6b7e7ffe86c1
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]