1. 19 Jul, 2012 1 commit
    • 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
  2. 13 Jul, 2012 1 commit
  3. 11 Jul, 2012 1 commit
  4. 06 Jul, 2012 1 commit
    • Jeremy Whiting's avatar
      Port folks to libgee 0.8. · e069bbe5
      Jeremy Whiting authored
      Added hash_static and equal_static to AbstractFieldDetails.
      Use AbstractFieldDetails hash_static and equal_static where needed.
      e069bbe5
  5. 18 Jun, 2012 1 commit
  6. 13 Jun, 2012 2 commits
  7. 12 Jun, 2012 1 commit
  8. 28 May, 2012 1 commit
  9. 30 Apr, 2012 2 commits
  10. 25 Apr, 2012 1 commit
  11. 17 Apr, 2012 4 commits
  12. 10 Apr, 2012 3 commits
  13. 09 Apr, 2012 1 commit
  14. 28 Mar, 2012 1 commit
  15. 26 Mar, 2012 2 commits
  16. 19 Mar, 2012 1 commit
  17. 27 Jan, 2012 1 commit
  18. 13 Dec, 2011 2 commits
  19. 10 Dec, 2011 1 commit
    • Philip Withnall's avatar
      Bug 665692 — Use constructors correctly · 2247cdd5
      Philip Withnall authored
      In order to allow libfolks to be used from introspected languages (such as
      Python) properly, we need to correctly use the GObject construction process,
      rather than generating code which does all object initialisation inside
      a *_new() function. This involves moving lots of code into construct{} blocks.
      
      There are some complications; mostly the need for various private variables to
      now be exposed as construct-only properties. Most of them should've been
      anyway.
      
      Other complications arose from the fact that moving code to a construct{}
      block can subtly change the execution order of the code if the Object() call
      lists properties which are non-construct properties (e.g. the “alias” property
      of a Persona). The setters for these properties will now be called _after_ the
      construct{} code, whereas previously they would've been called beforehand.
      This rears its head in Tpf.Persona, but hopefully nowhere else.
      
      Closes: bgo#665692
      2247cdd5
  20. 25 Nov, 2011 1 commit
  21. 18 Oct, 2011 1 commit
  22. 17 Oct, 2011 1 commit
  23. 11 Oct, 2011 9 commits