platform/upstream/folks.git
12 years agoCut unnecessary Swf.PersonaStore._is_prepared locking.
Travis Reitter [Thu, 7 Jul 2011 00:54:01 +0000 (17:54 -0700)]
Cut unnecessary Swf.PersonaStore._is_prepared locking.

Helps: bgo#652637 - Don't hold locks across async calls

12 years agoCut unnecessary Kf.PersonaStore._is_prepared locking.
Travis Reitter [Thu, 7 Jul 2011 00:51:07 +0000 (17:51 -0700)]
Cut unnecessary Kf.PersonaStore._is_prepared locking.

Helps: bgo#652637 - Don't hold locks across async calls

12 years agoCut unnecessary Tpf.PersonaStore._is_prepared locking.
Travis Reitter [Thu, 7 Jul 2011 00:39:40 +0000 (17:39 -0700)]
Cut unnecessary Tpf.PersonaStore._is_prepared locking.

Helps: bgo#652637 - Don't hold locks across async calls

12 years agoCut unnecessary Trf.PersonaStore._is_prepared locking.
Travis Reitter [Thu, 7 Jul 2011 00:21:56 +0000 (17:21 -0700)]
Cut unnecessary Trf.PersonaStore._is_prepared locking.

Helps: bgo#652637 - Don't hold locks across async calls

12 years agoPrevent extra "concurrent" Aggregator prepare() calls from one thread.
Travis Reitter [Thu, 7 Jul 2011 00:58:05 +0000 (17:58 -0700)]
Prevent extra "concurrent" Aggregator prepare() calls from one thread.

Helps: bgo#652637 - Don't hold locks across async calls

12 years agoPrevent extra "concurrent" PersonaStore.prepare() calls from one thread.
Travis Reitter [Wed, 6 Jul 2011 21:48:43 +0000 (14:48 -0700)]
Prevent extra "concurrent" PersonaStore.prepare() calls from one thread.

The lock() calls which were in place only prevent concurrent calls from
different threads; however, the critical section could still be reached
from two async calls in the same thread a la:

backend.prepare.begin ((s,r) => {...});
backend.prepare.begin ((s,r) => {...});

The bodies of the handlers would not literally execute concurrently, but
would be interleaved if each were sufficiently long. Our fix simply
ignores any calls which happen while one is still working.

(yield backend.prepare(); yield backend.prepare(); was already safe, of
course)

Helps: bgo#652637 - Don't hold locks across async calls

12 years agoAdd test cases for mutexing for async calls from the same thread.
Travis Reitter [Wed, 6 Jul 2011 18:09:26 +0000 (11:09 -0700)]
Add test cases for mutexing for async calls from the same thread.

The standard Vala lock() call is a recursive lock, so it only prevents
concurrent access between different threads. But we rarely run in
distinct threads, so this test uses a more-complete solution that we can
depend upon (since the test will fail if its assumptions ever change in
Vala).

Helps: bgo#652637 - Don't hold locks across async calls

12 years agoFix Tracker structure locking for user-initiated Persona adds.
Travis Reitter [Tue, 5 Jul 2011 21:36:49 +0000 (14:36 -0700)]
Fix Tracker structure locking for user-initiated Persona adds.

Helps: bgo#652637 - Don't hold locks across async calls

12 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Mon, 23 Jul 2012 10:27:16 +0000 (12:27 +0200)]
Updated Norwegian bokmål translation

12 years agoeds: Make some PersonaStore methods synchronous
Philip Withnall [Sun, 22 Jul 2012 12:04:59 +0000 (13:04 +0100)]
eds: Make some PersonaStore methods synchronous

There was absolutely no point in them being asynchronous (they didn’t yield
at all, and didn’t run any blocking operations), so were just generating
excess C code and slowing everything down.

This cuts 1200 lines from edsf-persona-store.c.

12 years agoeds: Hide the “Starred in Android” group from the set of groups
Philip Withnall [Sun, 22 Jul 2012 08:10:29 +0000 (09:10 +0100)]
eds: Hide the “Starred in Android” group from the set of groups

For Google address books, it’s used to determine whether a contact is a
favourite, so needn’t be shown in the set of groups.

Note that this requires commit 161faab40fa65e813ac98042ef822298dc58cfde
from EDS in order to behave properly.

See: https://bugzilla.gnome.org/show_bug.cgi?id=661490

12 years agoAdded Belarusian translation.
Ihar Hrachyshka [Thu, 19 Jul 2012 21:07:52 +0000 (00:07 +0300)]
Added Belarusian translation.

12 years agocore: Fix documentation on GroupDetails.groups
Philip Withnall [Thu, 19 Jul 2012 04:04:31 +0000 (05:04 +0100)]
core: Fix documentation on GroupDetails.groups

It was out of date and didn’t match the data type of GroupDetails.groups
any more.

See: https://bugzilla.gnome.org/show_bug.cgi?id=679743

12 years agotelepathy: Preserve Tpf.Persona avatars from the cache for online contacts
Philip Withnall [Fri, 22 Jun 2012 18:17:42 +0000 (19:17 +0100)]
telepathy: Preserve Tpf.Persona avatars from the cache for online contacts

This is a fairly hacky way of fixing the problem in bug #660128: maintaining
a map of IIDs to avatar files for all personas in the Telepathy backend, and
referring to it in case Telepathy doesn’t know the current avatar for a
TpContact. This can happen if that contact is currently offline while we’re
online, for example. This allows use of the avatars cached from last time
contacts were online, even though those contacts are now offline.

A more comprehensive fix, which I would have implemented if I hadn’t just got
my degree classification and weren’t just heading out to celebrate, would
involve rearchitecting the caching of the Telepathy backend so that the
Tpf.Personas weren’t destroyed and re-created whenever the backend went
offline/online; instead, they would have their properties updated from the
cache/online contact list. This would eliminate spurious personas-changed
signals, unify the code implementing the different properties (currently it’s
split between the properties and separate implementations in
Tpf.Persona.from_cache()), and allow property values to persist from offline
to online without the need for hacks like this.

Closes: https://bugzilla.gnome.org/show_bug.cgi?id=660128

12 years agotelepathy: Allow for updated Tpf.Personas properties to update the cache
Philip Withnall [Fri, 22 Jun 2012 18:09:57 +0000 (19:09 +0100)]
telepathy: Allow for updated Tpf.Personas properties to update the cache

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

12 years agocore: Don’t keep references to PersonaStores in each Individual
Philip Withnall [Fri, 22 Jun 2012 18:03:55 +0000 (19:03 +0100)]
core: Don’t keep references to PersonaStores in each Individual

Pointless and it makes debugging reference counting bugs a real pain.

12 years agotelepathy: Change warning about CM not implementing contact list to debug message.
Jeremy Whiting [Wed, 18 Jul 2012 18:44:06 +0000 (12:44 -0600)]
telepathy: Change warning about CM not implementing contact list to debug message.
fixes: 675223

12 years agoUpdated Serbian translation
Мирослав Николић [Tue, 17 Jul 2012 20:03:17 +0000 (22:03 +0200)]
Updated Serbian translation

12 years agoAdded Serbian translation
Мирослав Николић [Tue, 17 Jul 2012 20:00:50 +0000 (22:00 +0200)]
Added Serbian translation

12 years agoUpdate NEWS file adding recently fixed bug.
Jeremy Whiting [Mon, 16 Jul 2012 22:30:14 +0000 (16:30 -0600)]
Update NEWS file adding recently fixed bug.

12 years agoeds: Trust google address books FULL since authorization is required to load.
Jeremy Whiting [Mon, 16 Jul 2012 22:10:33 +0000 (16:10 -0600)]
eds: Trust google address books FULL since authorization is required to load.

12 years agofolks: Don't downgrade persona store trust level.
Jeremy Whiting [Mon, 16 Jul 2012 22:09:55 +0000 (16:09 -0600)]
folks: Don't downgrade persona store trust level.

12 years agotracker: Fix tracker unit tests to wait until persona store is prepared.
Jeremy Whiting [Mon, 16 Jul 2012 21:37:49 +0000 (15:37 -0600)]
tracker: Fix tracker unit tests to wait until persona store is prepared.

12 years agotracker: Throw an error if personas are added before store is prepared.
Jeremy Whiting [Mon, 16 Jul 2012 21:30:16 +0000 (15:30 -0600)]
tracker: Throw an error if personas are added before store is prepared.

12 years agotests: Add execute-test.sh to do test output capturing.
Jeremy Whiting [Mon, 16 Jul 2012 16:19:10 +0000 (10:19 -0600)]
tests: Add execute-test.sh to do test output capturing.
tests: Call execute-test.sh from each of with-session-bus scripts.

12 years agoSend eds server debug output into /dev/null along with regular output.
Jeremy Whiting [Mon, 16 Jul 2012 16:16:39 +0000 (10:16 -0600)]
Send eds server debug output into /dev/null along with regular output.
Extend sleep time to 2 seconds.

12 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 16 Jul 2012 14:42:24 +0000 (16:42 +0200)]
Updated Spanish translation

12 years agoAdded Lithuanian translation
Aurimas Černius [Sat, 14 Jul 2012 11:59:28 +0000 (14:59 +0300)]
Added Lithuanian translation

12 years agoUpdated Traditional Chinese translation(Hong Kong and Taiwan)
Chao-Hsiung Liao [Sat, 14 Jul 2012 05:40:54 +0000 (13:40 +0800)]
Updated Traditional Chinese translation(Hong Kong and Taiwan)

12 years agotelepathy: Tidy up group change notification handling in Tpf.Persona
Philip Withnall [Fri, 13 Jul 2012 22:17:33 +0000 (23:17 +0100)]
telepathy: Tidy up group change notification handling in Tpf.Persona

12 years agoeds: Add an Edsf.Persona.in_google_personal_group property
Philip Withnall [Sun, 24 Jun 2012 10:50:06 +0000 (11:50 +0100)]
eds: Add an Edsf.Persona.in_google_personal_group property

This is set whenever the persona is in the “My Contacts” group in Google
Contacts, which is normally exposed by EDS as being in the “Personal”
category. This system group can’t be reliably detected normally as “Personal”
is translated by EDS. This caused problems for gnome-contacts, hence the
new API.

The new API requires EDS 3.5.3 at runtime, and will always be false
otherwise.

Helps: https://bugzilla.gnome.org/show_bug.cgi?id=676383

12 years agoRemove gconf soft dependency used for eds unit tests.
Jeremy Whiting [Tue, 10 Jul 2012 20:48:59 +0000 (14:48 -0600)]
Remove gconf soft dependency used for eds unit tests.
Fixes: bgo 674611

12 years agoAdd a sleep for one second after starting the eds servers.
Jeremy Whiting [Fri, 13 Jul 2012 21:11:27 +0000 (15:11 -0600)]
Add a sleep for one second after starting the eds servers.
Fixes inconsistent eds unit test failures.  All tests pass here now.

12 years agotelepathy: Set _prepare_pending to true at beginning of prepare.
Jeremy Whiting [Fri, 13 Jul 2012 16:59:39 +0000 (10:59 -0600)]
telepathy: Set _prepare_pending to true at beginning of prepare.
Fixes folks init unit test failure.

12 years agoMerge branch 'cleantestoutput'
Jeremy Whiting [Thu, 12 Jul 2012 20:22:41 +0000 (14:22 -0600)]
Merge branch 'cleantestoutput'
Reviewed-by: Philip Withnal
Closes: bgo 657456 https://bugzilla.gnome.org/show_bug.cgi?id=657456

12 years agoBug 679618 — Crash when unsetting all groups
Philip Withnall [Mon, 9 Jul 2012 20:18:41 +0000 (21:18 +0100)]
Bug 679618 — Crash when unsetting all groups

Rework the group changing code in Tpf.Persona so that:
 1. change_groups() no longer changes the set of groups while iterating
    over it; and
 2. batch Telepathy calls are made where possible, rather than one call per
    group change.

Closes: https://bugzilla.gnome.org/show_bug.cgi?id=679618

12 years agoMake test output use color for PASS/FAIL.
Jeremy Whiting [Tue, 10 Jul 2012 20:22:29 +0000 (14:22 -0600)]
Make test output use color for PASS/FAIL.
Don't show test output unless CHECK_VERBOSE is set.
Fixes: bgo 657456

12 years agoUpdated Norwegian bokmål translation
Kjartan Maraas [Mon, 9 Jul 2012 12:33:34 +0000 (14:33 +0200)]
Updated Norwegian bokmål translation

12 years agoNew French translation
Bruno Brouard [Sun, 8 Jul 2012 09:28:19 +0000 (11:28 +0200)]
New French translation

12 years agoUpdated POTFILES.in and POTFILES.skip
Piotr Drąg [Sat, 7 Jul 2012 20:58:13 +0000 (22:58 +0200)]
Updated POTFILES.in and POTFILES.skip

12 years agokey-file: Add anti-linking support
Philip Withnall [Sun, 6 May 2012 21:59:45 +0000 (22:59 +0100)]
key-file: Add anti-linking support

Helps: https://bugzilla.gnome.org/show_bug.cgi?id=629537

12 years agoeds: Add anti-linking support
Philip Withnall [Sun, 6 May 2012 21:59:34 +0000 (22:59 +0100)]
eds: Add anti-linking support

Helps: https://bugzilla.gnome.org/show_bug.cgi?id=629537

12 years agocore: Add core anti-linking support
Philip Withnall [Mon, 25 Jul 2011 19:27:29 +0000 (20:27 +0100)]
core: Add core anti-linking support

This adds the core of the anti-linking support, based around a new
AntiLinkable interface. This will be implemented by Persona subclasses which
can store anti-linking information (in the form of a set of Persona UIDs
which the given Persona should never be linked to).

This approach allows anti-linking information to be stored with the personas
(presumably in the primary persona store) and thus it should be network
transparent. i.e. Using folks on two different computers with a Google
Contacts address book as primary should cause the anti-linking data to be
shared.

This also includes the necessary IndividualAggregator changes.

Sadly, no unit tests are included.

Closes: https://bugzilla.gnome.org/show_bug.cgi?id=629537

12 years agocore: Replace the linking step in IA.ensure_individual_property_writeable()
Philip Withnall [Mon, 7 May 2012 23:01:42 +0000 (00:01 +0100)]
core: Replace the linking step in IA.ensure_individual_property_writeable()

It’s a waste of time to create a new Persona to ensure the property is
writeable, then create _another_ new Persona to link it to the Individual.
Why not just create the writeable Persona so that it’s automatically linked
to the Individual?

Helps: https://bugzilla.gnome.org/show_bug.cgi?id=629537

12 years agocore: Split details table code out of IA.link_personas()
Philip Withnall [Mon, 7 May 2012 22:59:56 +0000 (23:59 +0100)]
core: Split details table code out of IA.link_personas()

Helps: https://bugzilla.gnome.org/show_bug.cgi?id=629537

12 years agoaggregator: Convert the link map to use a MultiMap
Philip Withnall [Thu, 8 Dec 2011 10:18:25 +0000 (10:18 +0000)]
aggregator: Convert the link map to use a MultiMap

When it's possible to have personas sharing IM addresses but not being
linked (due to anti-links), the link map's assumption that one IM address
(or other linkable property) maps to one individual will be invalid. This
commit converts the link map to be a HashMultiMap, effectively changing it
from a mapping of string → Individual to a mapping of
string → Set<Individual>.

Helps: bgo#629537

12 years agoChange urls to links in doc comments, fixes doc creation.
Jeremy Whiting [Fri, 6 Jul 2012 20:23:59 +0000 (14:23 -0600)]
Change urls to links in doc comments, fixes doc creation.

12 years agoAdd bugfix and dependency change to NEWS.
Jeremy Whiting [Fri, 6 Jul 2012 15:22:56 +0000 (09:22 -0600)]
Add bugfix and dependency change to NEWS.

12 years agoMerge branch libgeetest which upgrades our libgee dependency.
Jeremy Whiting [Fri, 6 Jul 2012 15:18:51 +0000 (09:18 -0600)]
Merge branch libgeetest which upgrades our libgee dependency.
Fixes bug https://bugzilla.gnome.org/show_bug.cgi?id=673918

12 years agoPort folks to libgee 0.8.
Jeremy Whiting [Wed, 4 Jul 2012 19:11:48 +0000 (13:11 -0600)]
Port folks to libgee 0.8.
Added hash_static and equal_static to AbstractFieldDetails.
Use AbstractFieldDetails hash_static and equal_static where needed.

12 years agobackend-store: never translate warning messages
Guillaume Desmottes [Mon, 2 Jul 2012 07:01:36 +0000 (09:01 +0200)]
backend-store: never translate warning messages

Most of them were not translated.

https://bugzilla.gnome.org/show_bug.cgi?id=679116

12 years agobackend-store: output a debug message if mime type of potential backends looks weird
Guillaume Desmottes [Fri, 29 Jun 2012 09:54:57 +0000 (11:54 +0200)]
backend-store: output a debug message if mime type of potential backends looks weird

Will make my life much easier next time I'm wondering why nothing is working.

https://bugzilla.gnome.org/show_bug.cgi?id=679116

12 years agoArabic translation
Khaled Hosny [Fri, 6 Jul 2012 04:02:13 +0000 (06:02 +0200)]
Arabic translation

12 years agoChange libgee dependency from 0.6 to 0.8.
Jeremy Whiting [Wed, 4 Jul 2012 15:37:47 +0000 (09:37 -0600)]
Change libgee dependency from 0.6 to 0.8.

12 years agoPort away from tp_connection_new since it has been deprecated.
Jeremy Whiting [Wed, 4 Jul 2012 23:10:27 +0000 (17:10 -0600)]
Port away from tp_connection_new since it has been deprecated.
Synced some sources from telepathy-glib/tests/lib/.

12 years agoGet libexecdir from libedata-book-1.2.pc.
Jeremy Whiting [Wed, 4 Jul 2012 15:38:52 +0000 (09:38 -0600)]
Get libexecdir from libedata-book-1.2.pc.

12 years agoBump released bit back to 0.
Jeremy Whiting [Tue, 3 Jul 2012 16:23:05 +0000 (10:23 -0600)]
Bump released bit back to 0.
Change dependency in NEWS from 3.5.4 to 3.5.3.1

12 years agoFix eds dependency to 3.5.3.1. FOLKS_0_7_2_2
Jeremy Whiting [Mon, 2 Jul 2012 20:38:25 +0000 (14:38 -0600)]
Fix eds dependency to 3.5.3.1.
Bump release numbers for 0.7.2.2 release.

12 years agoChange UNRELEASED to 0.7.2.
Jeremy Whiting [Mon, 2 Jul 2012 20:38:02 +0000 (14:38 -0600)]
Change UNRELEASED to 0.7.2.

12 years agoUpdated Vietnamese translation
Nguyễn Thái Ngọc Duy [Sat, 30 Jun 2012 13:26:13 +0000 (20:26 +0700)]
Updated Vietnamese translation

12 years agoPost 0.7.2.1 release version bump.
Jeremy Whiting [Thu, 28 Jun 2012 22:20:55 +0000 (16:20 -0600)]
Post 0.7.2.1 release version bump.
Added 0.7.2 to 0.7.3 section to NEWS.

12 years agoAdd Profiling api to NEWS file. FOLKS_0_7_2_1
Jeremy Whiting [Thu, 28 Jun 2012 21:34:55 +0000 (15:34 -0600)]
Add Profiling api to NEWS file.
Bump soname numbers in configure.ac for Folks 0.7.2.1 release.

12 years agoBump nano version and revert released bit.
Jeremy Whiting [Thu, 28 Jun 2012 20:40:49 +0000 (14:40 -0600)]
Bump nano version and revert released bit.
Add 0.7.3 section to the top of NEWS.

12 years agoUse async creation of Source Registry in eds test backend. FOLKS_0_7_2
Jeremy Whiting [Thu, 28 Jun 2012 19:49:50 +0000 (13:49 -0600)]
Use async creation of Source Registry in eds test backend.

12 years agoStart eds source-registry and addressbook-factory ourselves.
Jeremy Whiting [Thu, 28 Jun 2012 19:49:00 +0000 (13:49 -0600)]
Start eds source-registry and addressbook-factory ourselves.

12 years agoAdd test.source and other.source to EXTRA_DIST.
Jeremy Whiting [Thu, 28 Jun 2012 19:47:32 +0000 (13:47 -0600)]
Add test.source and other.source to EXTRA_DIST.

12 years agoAdd Bugfix to NEWS.
Jeremy Whiting [Thu, 28 Jun 2012 19:46:57 +0000 (13:46 -0600)]
Add Bugfix to NEWS.

12 years agoAdd folks-internal to libsocialweb backend library vapi.
Jeremy Whiting [Thu, 28 Jun 2012 18:17:52 +0000 (12:17 -0600)]
Add folks-internal to libsocialweb backend library vapi.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=679020

12 years agoAdd folks-internal to make docs dependencies for profiling symbols.
Jeremy Whiting [Thu, 28 Jun 2012 17:41:15 +0000 (11:41 -0600)]
Add folks-internal to make docs dependencies for profiling symbols.

12 years agoDefault to xz tarballs for distribution.
Jeremy Whiting [Thu, 28 Jun 2012 16:53:58 +0000 (10:53 -0600)]
Default to xz tarballs for distribution.

12 years agoRemove individual-zeitgeist from make check targets.
Jeremy Whiting [Wed, 27 Jun 2012 17:22:18 +0000 (11:22 -0600)]
Remove individual-zeitgeist from make check targets.

12 years agoFolks 0.7.2 release.
Jeremy Whiting [Wed, 27 Jun 2012 03:48:45 +0000 (21:48 -0600)]
Folks 0.7.2 release.

12 years agotracker: Unmark a method as asynchronous
Philip Withnall [Sun, 24 Jun 2012 19:21:55 +0000 (20:21 +0100)]
tracker: Unmark a method as asynchronous

Private method, didn’t need to be asynchronous.

12 years agoeds: Share a single E.SourceRegistry between all Edsf.PersonaStores
Philip Withnall [Sun, 24 Jun 2012 17:33:49 +0000 (18:33 +0100)]
eds: Share a single E.SourceRegistry between all Edsf.PersonaStores

Turns out a single E.SourceRegistry takes about 200ms to construct, due to
involving D-Bus round trips, so sharing the existing SourceRegistry from the
Eds.Backend to all its Edsf.PersonaStores is a big win.

12 years agoaggregator: Don’t prematurely reach quiescence
Philip Withnall [Sun, 24 Jun 2012 17:15:41 +0000 (18:15 +0100)]
aggregator: Don’t prematurely reach quiescence

If one of the backends loads very fast, but doesn’t signal the addition of
any persona stores for a while, the IndividualAggregator will prematurely
reach quiescence. We now force quiescence to be reached at least after all
the backends have finished loading.

12 years agocore: Add a profiling API and implement some profiling points
Philip Withnall [Sun, 24 Jun 2012 16:55:43 +0000 (17:55 +0100)]
core: Add a profiling API and implement some profiling points

The API outputs messages in the format accepted by Federico’s
plot-timeline.py (http://people.gnome.org/~federico/news-2006-03.html#timeline-tools)
so graphs can easily be generated by running:

    strace -ttt -f -o /tmp/logfile folks-inspect
    python plot-timeline.py -o graph.png /tmp/logfile

So far, the BackendStore, IndividualAggregator and Backend and PersonaStore
classes for all the backends have been annotated.

12 years agoAdd bug fix to NEWS file.
Jeremy Whiting [Mon, 25 Jun 2012 22:01:19 +0000 (16:01 -0600)]
Add bug fix to NEWS file.

12 years agoFix style issues as noted in https://bugzilla.gnome.org/show_bug.cgi?id=678811.
Jeremy Whiting [Mon, 25 Jun 2012 21:55:22 +0000 (15:55 -0600)]
Fix style issues as noted in https://bugzilla.gnome.org/show_bug.cgi?id=678811.
Use _addressbook_name to ref the test source.
Remove unused _source_name.

12 years agoRemove GConf stop from eds test harness, since it's not needed.
Jeremy Whiting [Mon, 25 Jun 2012 19:07:49 +0000 (13:07 -0600)]
Remove GConf stop from eds test harness, since it's not needed.

12 years agoAdd mainloop to eds test backend tear_down to wait for addressbook removal.
Jeremy Whiting [Mon, 25 Jun 2012 19:06:26 +0000 (13:06 -0600)]
Add mainloop to eds test backend tear_down to wait for addressbook removal.

12 years agoFix link-personas-diff-stores test.
Jeremy Whiting [Mon, 25 Jun 2012 19:01:49 +0000 (13:01 -0600)]
Fix link-personas-diff-stores test.
Need to use both test and other addressbooks.

12 years agoUse ESource display_name instead of uid.
Jeremy Whiting [Mon, 25 Jun 2012 19:00:15 +0000 (13:00 -0600)]
Use ESource display_name instead of uid.

12 years agoUse async addressbook remove method, since sync method hangs currently.
Jeremy Whiting [Thu, 21 Jun 2012 18:36:27 +0000 (12:36 -0600)]
Use async addressbook remove method, since sync method hangs currently.

12 years agoFix link-personas-diff-stores unit test.
Jeremy Whiting [Wed, 20 Jun 2012 18:19:19 +0000 (12:19 -0600)]
Fix link-personas-diff-stores unit test.
Remove obsolete EDS TestBackend address_uri.
Allow choosing other or test source in set_up method.

12 years agoCreate another other.source for eds unit tests.
Jeremy Whiting [Wed, 20 Jun 2012 18:18:42 +0000 (12:18 -0600)]
Create another other.source for eds unit tests.

12 years agoPort test eds backend to eds api changes.
Jeremy Whiting [Tue, 19 Jun 2012 17:54:05 +0000 (11:54 -0600)]
Port test eds backend to eds api changes.
Add test.source keyfile for unit tests.

12 years agoRe-enable eds backend unit tests.
Jeremy Whiting [Tue, 19 Jun 2012 17:52:13 +0000 (11:52 -0600)]
Re-enable eds backend unit tests.

12 years agocore: Replace symbols with spaces when matching names in PotentialMatch
Philip Withnall [Mon, 25 Jun 2012 19:07:21 +0000 (20:07 +0100)]
core: Replace symbols with spaces when matching names in PotentialMatch

This allows, for example, “Alice Badger” and “alice.badger” to have a HIGH
match. This is a common situation when trying to pair up IM personas with
other personas.

This also includes a test case.

Closes: https://bugzilla.gnome.org/show_bug.cgi?id=678474

12 years agoeds: Fix memory leaks in EDS backend
Philip Withnall [Mon, 25 Jun 2012 20:47:55 +0000 (21:47 +0100)]
eds: Fix memory leaks in EDS backend

These were unavoidably caused by a problem with the EDS Vala bindings. This
will be fixed in EDS 3.5.4, so our dependency has been bumped.

Closes: https://bugzilla.gnome.org/show_bug.cgi?id=678781

12 years agocore: Fix indexing for unichars in PotentialMatch’s Jaro distance function
Philip Withnall [Sat, 23 Jun 2012 10:24:53 +0000 (11:24 +0100)]
core: Fix indexing for unichars in PotentialMatch’s Jaro distance function

The indexing was getting out of sync between the two strings if one contained
a different number of non-ASCII characters to the other (as the indexing was
done in terms of bytes, rather than characters). This re-works the Jaro
distance function to operate on unichar arrays, and index in terms of
characters. This also means that exact matches now work over stripped non-ASCII
characters, which they didn’t before.

This adds a new test case. Yay.

Closes: https://bugzilla.gnome.org/show_bug.cgi?id=678474

12 years agocore: Tidy up MatchResult usage in PotentialMatch a little
Philip Withnall [Sat, 23 Jun 2012 09:09:14 +0000 (10:09 +0100)]
core: Tidy up MatchResult usage in PotentialMatch a little

There’s no need for the result to be an instance variable.

12 years agoeds: Adjust to e-d-s API break
Florian Müllner [Mon, 25 Jun 2012 13:41:44 +0000 (15:41 +0200)]
eds: Adjust to e-d-s API break

Address books are now referenced by UID instead of URI, and the API
has been updated to reflect this.

12 years agoUpdate Punjabi Translation
A S Alam [Mon, 25 Jun 2012 01:15:20 +0000 (06:45 +0530)]
Update Punjabi Translation

12 years agoUpdated Galician translations
Fran Diéguez [Sun, 24 Jun 2012 22:05:55 +0000 (00:05 +0200)]
Updated Galician translations

12 years agoeds: Fix warnings about empty postal addresses
Philip Withnall [Sat, 23 Jun 2012 11:17:23 +0000 (12:17 +0100)]
eds: Fix warnings about empty postal addresses

12 years agoeds: Revert checks for empty properties
Philip Withnall [Sat, 23 Jun 2012 11:04:38 +0000 (12:04 +0100)]
eds: Revert checks for empty properties

These are in the wrong place and duplicate checks further down those code
paths.

12 years agoUpdated Greek translation
Dimitris Spingos [Fri, 22 Jun 2012 13:34:04 +0000 (16:34 +0300)]
Updated Greek translation

12 years agoAdded Greek translation
Dimitris Spingos [Fri, 22 Jun 2012 13:15:38 +0000 (16:15 +0300)]
Added Greek translation

12 years agoUpdated Spanish translation
Daniel Mustieles [Fri, 22 Jun 2012 11:49:25 +0000 (13:49 +0200)]
Updated Spanish translation

12 years agotelepathy: Remove unused variable
Philip Withnall [Tue, 19 Jun 2012 10:25:06 +0000 (11:25 +0100)]
telepathy: Remove unused variable