1. 19 Jul, 2012 2 commits
    • Philip Withnall's avatar
      telepathy: Allow for updated Tpf.Personas properties to update the cache · 36ecd01a
      Philip Withnall authored
      Currently, the cache is only written when going offline, which means that any
      properties of Tpf.Personas which are updated at runtime aren’t written to the
      cache unless the client explicitly goes offline before being closed. This
      doesn’t often happen, meaning the property updates are lost and the cache
      becomes stale.
      
      This commit keeps track of the clean/dirty state of the cache and writes it
      out when PersonaStore.flush() is called. It also adds a new method,
      IndividualAggregator.unprepare(), which ensures all the persona stores handled
      by the aggregator are flushed. Clients should call this method before closing
      their main loop.
      
      (Calling flush() in the finalise function of the PersonaStore doesn’t work
      because Tpf.PersonaStores are often never finalised due to the implementation
      of Tpf.PersonaStore.dup_for_account(). Furthermore, calling flush() in the
      finalise function of the IndividualAggregator doesn’t work because the client
      will typically quit the main loop immediately afterwards, which will cancel
      the asynchronous flush call.)
      
      New API:
       • IndividualAggregator.unprepare()
      
      Helps: https://bugzilla.gnome.org/show_bug.cgi?id=660128
      36ecd01a
    • Philip Withnall's avatar
      core: Don’t keep references to PersonaStores in each Individual · 6f743fdc
      Philip Withnall authored
      Pointless and it makes debugging reference counting bugs a real pain.
      6f743fdc
  2. 18 Jul, 2012 1 commit
  3. 17 Jul, 2012 2 commits
  4. 16 Jul, 2012 8 commits
  5. 14 Jul, 2012 2 commits
  6. 13 Jul, 2012 5 commits
  7. 12 Jul, 2012 1 commit
  8. 11 Jul, 2012 1 commit
  9. 10 Jul, 2012 1 commit
  10. 09 Jul, 2012 1 commit
  11. 08 Jul, 2012 1 commit
  12. 07 Jul, 2012 7 commits
  13. 06 Jul, 2012 7 commits
  14. 05 Jul, 2012 1 commit