Change the keystroke delivery methid re-entrancy from
[platform/core/uifw/at-spi2-atk.git] / atk-adaptor / accessible-leasing.c
index 0bfd496..63f3c3a 100644 (file)
 #include <stdlib.h>
 #include <string.h>
 
-#include <accessible-leasing.h>
+#include "accessible-leasing.h"
+
+#ifdef SPI_ATK_DEBUG
+#include "accessible-cache.h"
+#endif
 
 /*---------------------------------------------------------------------------*/
 
+SpiLeasing *spi_global_leasing;
+
 typedef struct _ExpiryElement
 {
   guint expiry_s;
@@ -106,6 +112,11 @@ expiry_func (gpointer data)
     {
       current = g_queue_pop_head (leasing->expiry_queue);
 
+#ifdef SPI_ATK_DEBUG
+      g_debug ("REVOKE - ");
+      spi_cache_print_info (current->object);
+#endif
+
       g_object_unref (current->object);
       g_slice_free (ExpiryElement, current);
 
@@ -190,6 +201,11 @@ spi_leasing_take (SpiLeasing * leasing, GObject * object)
 
   add_expiry_timeout (leasing);
 
+#ifdef SPI_ATK_DEBUG
+  g_debug ("LEASE - ");
+  spi_cache_print_info (object);
+#endif
+
   return object;
 }