X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=atk-adaptor%2Faccessible-cache.c;h=f282d55d2e5f232e931e9d29fb88a041dd88877a;hb=f6a0fdcf50c5bcbab547996313161ee4200266e4;hp=da116ec5c6d66a8fc9985c8670778b758b86fc16;hpb=75ff193c80938e04514e9f4a482baa81227be1a2;p=platform%2Fcore%2Fuifw%2Fat-spi2-atk.git diff --git a/atk-adaptor/accessible-cache.c b/atk-adaptor/accessible-cache.c index da116ec..f282d55 100644 --- a/atk-adaptor/accessible-cache.c +++ b/atk-adaptor/accessible-cache.c @@ -21,6 +21,7 @@ */ #include +#include #include "accessible-cache.h" #include "accessible-register.h" @@ -286,6 +287,11 @@ add_pending_items (gpointer data) while (!g_queue_is_empty (to_add)) { current = g_queue_pop_head (to_add); + + /* Make sure object is registerd so we are notified if it goes away */ + g_free (spi_register_object_to_path (spi_global_register, + G_OBJECT (current))); + add_object (cache, G_OBJECT(current)); g_object_unref (G_OBJECT (current)); } @@ -329,7 +335,7 @@ child_added_listener (GSignalInvocationHint * signal_hint, if (signal_hint->detail) detail = g_quark_to_string (signal_hint->detail); - if (!g_strcmp0 (detail, "add")) + if (!strncmp (detail, "add", 3)) { gpointer child; int index = g_value_get_uint (param_values + 1);