diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2020-11-07 12:50:11 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2020-11-09 16:21:49 +0000 |
commit | 0af66305211492270cc313ddf9dfbc978a4701d8 (patch) | |
tree | 1fcdad50d38abd2a5b3d7f6118661c769767e527 /gtk/gtktestatcontext.c | |
parent | e093ed7d6745b910077aaf6c60a58536704d8f52 (diff) | |
download | gtk+-0af66305211492270cc313ddf9dfbc978a4701d8.tar.gz |
a11y: Consolidate accessibility environment variables
Use a single environment variable for everything:
- select the ATContext implementation
- select the test ATContext
- disable ATContext entirely
We use the same pattern as GSK_RENDERER, GTK_DEBUG, etc.
The documentation needs to be updated to include the environment
variable.
Diffstat (limited to 'gtk/gtktestatcontext.c')
-rw-r--r-- | gtk/gtktestatcontext.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtktestatcontext.c b/gtk/gtktestatcontext.c index fdcd7fcc9e..4812bc38ae 100644 --- a/gtk/gtktestatcontext.c +++ b/gtk/gtktestatcontext.c @@ -95,6 +95,7 @@ gtk_test_at_context_init (GtkTestATContext *self) * gtk_test_at_context_new: * @accessible_role: the #GtkAccessibleRole for the AT context * @accessible: the #GtkAccessible instance which owns the AT context + * @display: a #GdkDisplay * * Creates a new #GtkTestATContext instance for @accessible, using the * given @accessible_role. @@ -103,11 +104,13 @@ gtk_test_at_context_init (GtkTestATContext *self) */ GtkATContext * gtk_test_at_context_new (GtkAccessibleRole accessible_role, - GtkAccessible *accessible) + GtkAccessible *accessible, + GdkDisplay *display) { return g_object_new (GTK_TYPE_TEST_AT_CONTEXT, "accessible-role", accessible_role, "accessible", accessible, + "display", display, NULL); } |