X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=atk-adaptor%2Faccessible-leasing.c;h=f4d0e2f5ff3d8cdb23639d2898b40588a0e15fca;hb=7540b8404de04eca32735fec3482b9b42d1e432f;hp=0bfd496ba46e2716fada688f963f230a53b9e0ee;hpb=1dd7a3f08c3ac54abca261ae5aa539371f77ccc9;p=platform%2Fcore%2Fuifw%2Fat-spi2-atk.git diff --git a/atk-adaptor/accessible-leasing.c b/atk-adaptor/accessible-leasing.c index 0bfd496..f4d0e2f 100644 --- a/atk-adaptor/accessible-leasing.c +++ b/atk-adaptor/accessible-leasing.c @@ -24,10 +24,16 @@ #include #include -#include +#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); @@ -161,7 +172,7 @@ add_expiry_timeout (SpiLeasing * leasing) The lease time is going to be rounded up, as the lease time should be considered a MINIMUM that the object will be leased for. */ -#define LEASE_TIME_S 3 +#define LEASE_TIME_S 15 #define EXPIRY_TIME_S (LEASE_TIME_S + 1) GObject * @@ -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; }