inspector: Realize AT ontexts
authorMatthias Clasen <mclasen@redhat.com>
Sat, 17 Jun 2023 18:48:18 +0000 (14:48 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 17 Jun 2023 18:50:01 +0000 (14:50 -0400)
Otherwise we don't get change notification...

gtk/inspector/a11y.c

index e06e767bea27ab7d462b904563bd008c7a4998ae..c07b4f0290b2ce923eda03dddbc90858995982cf 100644 (file)
@@ -486,6 +486,7 @@ gtk_inspector_a11y_set_object (GtkInspectorA11y *sl,
       context = gtk_accessible_get_at_context (GTK_ACCESSIBLE (sl->object));
       if (context != NULL)
         {
+          gtk_at_context_realize (context);
           g_signal_connect_swapped (context, "state-change", G_CALLBACK (refresh_all), sl);
           g_object_unref (context);
         }