atcontext: Move variable declaration to top

This conforms better to the GTK C coding style.
This commit is contained in:
Georges Basile Stavracas Neto
2024-01-18 15:23:35 -03:00
parent f019a325ef
commit c8299f5b3e

View File

@@ -634,6 +634,7 @@ gtk_at_context_create (GtkAccessibleRole accessible_role,
GdkDisplay *display)
{
static const char *gtk_a11y_env;
GtkATContext *res = NULL;
if (gtk_a11y_env == NULL)
{
@@ -661,8 +662,6 @@ gtk_at_context_create (GtkAccessibleRole accessible_role,
if (g_ascii_strcasecmp (gtk_a11y_env, "none") == 0)
return NULL;
GtkATContext *res = NULL;
for (size_t i = 0; i < G_N_ELEMENTS (a11y_backends); i++)
{
if (a11y_backends[i].name == NULL)