Send UpdateAccessible for transient objects
authorMike Gorse <mgorse@novell.com>
Mon, 7 Dec 2009 20:59:04 +0000 (15:59 -0500)
committerMike Gorse <mgorse@novell.com>
Wed, 9 Dec 2009 16:39:36 +0000 (11:39 -0500)
Send an UpdateAccessible signal if a Transient object is registered.
This should only happen as the result of a query (GetChildAtIndex,
GetAccessibleAt, etc).

atk-adaptor/accessible-register.c

index 197152b..d4a1d6c 100644 (file)
@@ -266,6 +266,8 @@ register_gobject (GObject *gobj, GObject *container)
     if (atk_state_set_contains_state (state, ATK_STATE_TRANSIENT))
     {
       g_object_ref (gobj);
+      /* We should only get here as the result of a query other than GetTree */
+      spi_emit_cache_update (accessible, atk_adaptor_app_data->bus);
     }
     g_object_unref (state);
   }