[gtk/a11y/atspi] atspi: Treat all entries the same for collecting state
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/a11y/atspi] atspi: Treat all entries the same for collecting state
- Date: Tue, 13 Oct 2020 01:59:57 +0000 (UTC)
commit 5eb482ebaadcd078abad5cfcec7e9dfbc2c57c99
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Oct 12 21:32:37 2020 -0400
atspi: Treat all entries the same for collecting state
We are determining editable state based on the
accessible role (although we could make it platform
state now), so cover all the roles that we use for
entry wrappers.
gtk/a11y/gtkatspicontext.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gtk/a11y/gtkatspicontext.c b/gtk/a11y/gtkatspicontext.c
index 348c794917..27157feda2 100644
--- a/gtk/a11y/gtkatspicontext.c
+++ b/gtk/a11y/gtkatspicontext.c
@@ -125,7 +125,8 @@ collect_states (GtkAtSpiContext *self,
set_atspi_state (&states, ATSPI_STATE_VISIBLE);
if (ctx->accessible_role == GTK_ACCESSIBLE_ROLE_TEXT_BOX ||
- ctx->accessible_role == GTK_ACCESSIBLE_ROLE_SEARCH_BOX)
+ ctx->accessible_role == GTK_ACCESSIBLE_ROLE_SEARCH_BOX ||
+ ctx->accessible_role == GTK_ACCESSIBLE_ROLE_SPIN_BUTTON)
set_atspi_state (&states, ATSPI_STATE_EDITABLE);
if (gtk_at_context_has_accessible_property (ctx, GTK_ACCESSIBLE_PROPERTY_READ_ONLY))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]