platform/upstream/evolution-data-server.git
11 years agoMigrating documentation into new libebook-contacts book.
Tristan Van Berkom [Mon, 18 Feb 2013 07:55:37 +0000 (16:55 +0900)]
Migrating documentation into new libebook-contacts book.

This documentation splitup was missed in the recent libebook / libebook-contacts
library splitup.

11 years agoEBackend: Utilize g_network_monitor_can_reach_async().
Matthew Barnes [Mon, 18 Feb 2013 02:07:03 +0000 (21:07 -0500)]
EBackend: Utilize g_network_monitor_can_reach_async().

If the backend has a GSocketConnectable, determine the "online" state
using g_network_monitor_can_reach_async().

The "online" state is automatically updated on instance initialization,
when the GSocketConnectable is replaced, and when GNetworkMonitor emits
a "network-changed" signal.

11 years agoEBackend: Keep a reference on GNetworkMonitor.
Matthew Barnes [Mon, 18 Feb 2013 01:14:25 +0000 (20:14 -0500)]
EBackend: Keep a reference on GNetworkMonitor.

Keep a strong reference on the default GNetworkMonitor, and connect to
its "network-changed" signal.  Our signal handler does nothing for the
moment, but shortly it will update the "online" state.

11 years agoEBackend: Add a "connectable" property (GSocketConnectable).
Matthew Barnes [Mon, 18 Feb 2013 00:30:29 +0000 (19:30 -0500)]
EBackend: Add a "connectable" property (GSocketConnectable).

This is the socket endpoint for the network service to which the
EBackend is a client.  This can be NULL if the EBackend does not
use network sockets.

The initial value of the "connectable" property is derived from the
ESourceAuthentication extension of the EBackend's "source" property,
if the extension is present.

11 years agoEBackend: Use g_clear_object() in dispose().
Matthew Barnes [Sun, 17 Feb 2013 23:18:33 +0000 (18:18 -0500)]
EBackend: Use g_clear_object() in dispose().

11 years agoPost-release version bump.
Matthew Barnes [Sun, 17 Feb 2013 20:45:56 +0000 (15:45 -0500)]
Post-release version bump.

11 years agoFix distcheck error.
Matthew Barnes [Sun, 17 Feb 2013 20:43:00 +0000 (15:43 -0500)]
Fix distcheck error.

11 years agoNEWS update for 3.7.90 release.
Matthew Barnes [Sun, 17 Feb 2013 20:13:06 +0000 (15:13 -0500)]
NEWS update for 3.7.90 release.

11 years agodata_cal_handle_remove_objects_cb: Fix GVariant format string.
Matthew Barnes [Sun, 17 Feb 2013 14:52:18 +0000 (09:52 -0500)]
data_cal_handle_remove_objects_cb: Fix GVariant format string.

11 years agoe_cal_client_remove_objects_sync: Fix an infinite loop.
Matthew Barnes [Sun, 17 Feb 2013 14:36:33 +0000 (09:36 -0500)]
e_cal_client_remove_objects_sync: Fix an infinite loop.

11 years agoECalObjModType is a flags type, not an enum type.
Matthew Barnes [Sun, 17 Feb 2013 13:33:48 +0000 (08:33 -0500)]
ECalObjModType is a flags type, not an enum type.

Transmit flags over D-Bus as a string of colon-separated nicknames.

11 years agoUpdated Polish translation
Piotr Drąg [Sun, 17 Feb 2013 14:35:49 +0000 (15:35 +0100)]
Updated Polish translation

11 years agoAdd optimized indexing capabilities for phone number values.
Tristan Van Berkom [Fri, 15 Feb 2013 13:44:34 +0000 (22:44 +0900)]
Add optimized indexing capabilities for phone number values.

Creating indexes with normalized phone numbers permits fast phone number
lookup even if the stored vCards or the queried phone numbers are freely
formatted or incomplete.

The numbers are formatted according to E.164 when building the index.
Incomplete numbers are prefixed with a country-code matching the current
locale settings while processing query results.

Updated Mathias Hasselmann's patch on bug 689622 to apply to current master.

11 years agoStore E.164 phone number values automatically in the vCard
Tristan Van Berkom [Fri, 15 Feb 2013 11:56:41 +0000 (20:56 +0900)]
Store E.164 phone number values automatically in the vCard

The E.164 normalized phone number is of interest for handset related
applications. With this change a X-EVOLUTION-E164 attribute is added
to each TEL attribute if the contact summary contains a E.164 formatted
variant of the phone number. This shall avoid overhead and inconsistency
that would occur if clients would use their own mechanism to compute
that already stored information.

Updated Mathias Hasselmann's patch on bug 689622 to apply to current master.

11 years agoe_extensible_load_extensions: Allow for retries.
Matthew Barnes [Sat, 16 Feb 2013 22:42:42 +0000 (17:42 -0500)]
e_extensible_load_extensions: Allow for retries.

If e_extensible_load_extensions() does not find any extensions, remove
the GPtrArray from the extensible object.  It may be the extension types
have not been registered yet.  Subsequent e_extensible_load_extensions()
calls on the same object should rescan until extensions are found.

11 years agoECalClient: Add a "default-timezone" pointer property.
Matthew Barnes [Sat, 16 Feb 2013 14:22:14 +0000 (09:22 -0500)]
ECalClient: Add a "default-timezone" pointer property.

This just uses the existing e_cal_client_get_default_timezone() and
e_cal_client_set_default_timezone() functions, but the property can
be a useful target for bindings.

11 years agoUpdated POTFILES.in
Piotr Drąg [Fri, 15 Feb 2013 12:43:42 +0000 (13:43 +0100)]
Updated POTFILES.in

11 years agoebook: make EContactGeo usable in Vala
Patrick Ohly [Thu, 14 Feb 2013 16:33:56 +0000 (17:33 +0100)]
ebook: make EContactGeo usable in Vala

"new E.ContactGeo()" in Vala fails because the struct has no
constructor. Introducing e_contact_geo_new() fixes that problem.

This extends the API instead of changing it. It is still valid
to allocated EContactGeo instances via some other means.

11 years agoebook: make EContactCert usable in Vala
Patrick Ohly [Thu, 14 Feb 2013 17:01:19 +0000 (18:01 +0100)]
ebook: make EContactCert usable in Vala

"new E.ContactCert()" in Vala fails because the struct has no
constructor. Introducing e_contact_cert_new() fixes that problem.

This extends the API instead of changing it. It is still valid
to allocated EContactCert instances via some other means.

11 years agoebook: avoid repeatedly creating GSettings in e_book_client_is_self
Patrick Ohly [Thu, 14 Feb 2013 15:04:14 +0000 (16:04 +0100)]
ebook: avoid repeatedly creating GSettings in e_book_client_is_self

When receiving the complete address book, a client has to use
e_book_client_is_self() on every EContact to find the one which is the
"self" contact. Calling e_book_client_get_self() instead does not
work, because that would create the self contact if none exists (not
desired for an app which just reads!).

The problem with e_book_client_is_self() is that it creates and
destroys a GSettings instance for the self UID each time the method is
called. In addition to reading the value over and over again, this
also triggers two D-Bus messages (AddMatch and RemoveMatch) - clearly
bad for performance.

To solve this problem, this patch caches the GSettings instance in a
static variable. It is protected by a mutex, to keep the function
thread-safe. The downside is that the instance is never going to be
freed.

It would be better to attach the GSettings instance to the EBookClient
instance, but because e_book_client_is_self() doesn't get a pointer to
that, this is not possible without an API change.

11 years agoAdded concurrent view test: test-client-view-operations.c
Tristan Van Berkom [Fri, 15 Feb 2013 09:34:05 +0000 (18:34 +0900)]
Added concurrent view test: test-client-view-operations.c

This tests concurrent access to EBookClientView, 20 threads each
race to receive notifications from the same addressbook and the
test asserts that all 5 contacts in the test addressbook are found.

This is particularly interesting with DEBUG_DIRECT set (Direct Read Access),
as it ensures that concurrent direct reads of the addressbook do not
cause any lockups.

11 years agoe-test-server-utils: Added DEBUG_DIRECT env var
Tristan Van Berkom [Fri, 15 Feb 2013 09:23:25 +0000 (18:23 +0900)]
e-test-server-utils: Added DEBUG_DIRECT env var

This is a temporary workaround to test Direct Read Access,
a later patch will ensure all tests check both Direct/Normal read access
modes.

11 years agoEBookBackendFile: Add support for Direct Read Access.
Tristan Van Berkom [Fri, 15 Feb 2013 09:26:14 +0000 (18:26 +0900)]
EBookBackendFile: Add support for Direct Read Access.

This patch simply implements the added backend vfuncs to advertize
and configure itself in direct read access mode.

11 years agoAdded Direct Read Access support to EBookClient
Tristan Van Berkom [Fri, 15 Feb 2013 09:15:18 +0000 (18:15 +0900)]
Added Direct Read Access support to EBookClient

Currently the only added api is e_book_client_connect_direct_sync().

If the backend associated to the given ESource does not support direct
read access, or the backend fails to open for any reason, then the
client falls back to regular read access.

EBookClientViews created from an EBookClient that is in direct read
access mode differ in functionality, they only receive UID notifications
over D-Bus and fetch the contact data directly.

11 years agoEDataBook / EDataBookView: Added Direct Read Access APIs / support
Tristan Van Berkom [Fri, 15 Feb 2013 09:02:59 +0000 (18:02 +0900)]
EDataBook / EDataBookView: Added Direct Read Access APIs / support

EDataBook:
  Now can be created by the client and offers read only APIs for
  reading back contact data directly from a client side instantiated
  backend

EDataBookView:
  Now use a special "x-evolution-uids-only" fields of interest in order
  to reduce D-Bus traffic, this makes it possible for EBookClientView
  to fetch contact data directly upon receival of notifications.

11 years agoEBookBackend: Added apis for backends to support Direct Read Access
Tristan Van Berkom [Fri, 15 Feb 2013 08:54:24 +0000 (17:54 +0900)]
EBookBackend: Added apis for backends to support Direct Read Access

e_book_backend_get_direct_book:
  A backend can return an EDataBookDirect from here to indicate
  that it supports direct read access, the properties of the EDataBookDirect
  are used by the client to access the book directly

e_book_backend_configure_direct:
  A backend opened in direct read access mode can be configured with
  the string that it's server side counterpart provided, this string
  belongs to the backend; for the local file backend it is used as
  a path to ensure the same SQLite DB is opened by the client as the
  one running in the server.

11 years agoAdded EDataBookDirect & generated D-Bus counterpart.
Tristan Van Berkom [Fri, 15 Feb 2013 08:49:13 +0000 (17:49 +0900)]
Added EDataBookDirect & generated D-Bus counterpart.

The EDataBookDirect is the server side wrapper allowing backends
to report information about thier direct read access support.

11 years agoFixing broken vala makefile.
Tristan Van Berkom [Fri, 15 Feb 2013 09:46:05 +0000 (18:46 +0900)]
Fixing broken vala makefile.

My last commit pulled back in the ECalendar vala api, which is for
some reason removed in master, fixed this by re-removing it from
the vala Makefile.am.

11 years agoSplits libebook into two libraries.
Tristan Van Berkom [Fri, 15 Feb 2013 08:26:30 +0000 (17:26 +0900)]
Splits libebook into two libraries.

This clears the way for Direct Read Access APIs to be integrated,
since EBookClient now needs to access EDataBook apis, a common
library is needed to share all the addressbook related objects
related to EContact so that it can be used by both the server
side addressbook backends and EDataBook, as well as EBookClient.

Essentially this properly splits things up and avoids a nasty
circular dependency issue.

11 years agoFix EDataBook error conversions to include E_CLIENT_ERROR_OUT_OF_SYNC
Tristan Van Berkom [Fri, 15 Feb 2013 08:35:55 +0000 (17:35 +0900)]
Fix EDataBook error conversions to include E_CLIENT_ERROR_OUT_OF_SYNC

This causes the test-client-write-write test to pass again.

11 years agoBug 693841 - EDataCal: Complete implementation of GetObjectsList
Giocanni Campagna [Fri, 15 Feb 2013 02:57:57 +0000 (21:57 -0500)]
Bug 693841 - EDataCal: Complete implementation of GetObjectsList

Clients were left waiting for a response from the backend that would
never happen.

11 years agoUpdated Lithuanian translation
Aurimas Černius [Thu, 14 Feb 2013 21:42:02 +0000 (23:42 +0200)]
Updated Lithuanian translation

11 years agoEBookBackendSqliteDB: Remodeled concurrent access.
Tristan Van Berkom [Thu, 14 Feb 2013 10:18:27 +0000 (19:18 +0900)]
EBookBackendSqliteDB: Remodeled concurrent access.

Now use a more traditional locking with a single mutex held at
every API entry point, this protects a single SQLite connection
from being accessed from multiple thread contexts (even in read mode).

11 years ago[CalDAV] Try to search for event when not in local cache
Milan Crha [Wed, 13 Feb 2013 17:41:12 +0000 (18:41 +0100)]
[CalDAV] Try to search for event when not in local cache

CalDAV backend depends on local cache when a client ask for an event,
which is usually fine, but when it comes to a meeting invitations,
with which the server can add event to the calendar on its own,
the invitation might not be found in the cache, thus try whether
it's available on the remote machine, before reporting Object Not Found.

11 years agoEBackend: Avoid breaking libebackend ABI.
Matthew Barnes [Wed, 13 Feb 2013 12:17:22 +0000 (07:17 -0500)]
EBackend: Avoid breaking libebackend ABI.

This is what the reserved slots in the class struct are for.

11 years agoIntroduce e_backend_is_destination_reachable()
Milan Crha [Wed, 13 Feb 2013 08:22:07 +0000 (09:22 +0100)]
Introduce e_backend_is_destination_reachable()

This new function, together with implementation of
e_backend_get_destination_address() on the backend side,
can be used to check whether the backend's destination
is currently reachable. Default implementation reports
backend as always reachable, aka local.

11 years agoKeep e_flag_timed_wait() building.
Matthew Barnes [Tue, 12 Feb 2013 23:03:04 +0000 (18:03 -0500)]
Keep e_flag_timed_wait() building.

11 years agoFix a gtk-doc build break caused by commit 623eb5fc7dd2b21f
Milan Crha [Tue, 12 Feb 2013 17:52:43 +0000 (18:52 +0100)]
Fix a gtk-doc build break caused by commit 623eb5fc7dd2b21f

The HTML tags in gtk-doc comments should be properly escaped,
thus gtk-doc doesn't consider them as real HTML tags.
Thanks Fabien (fta) for the notice.

11 years agoTypo in test_closure type
Milan Crha [Tue, 12 Feb 2013 13:57:26 +0000 (14:57 +0100)]
Typo in test_closure type

11 years agoAdd modules/ubuntu-online-accounts/google-*.service.in to POTFILES.skip
Milan Crha [Tue, 12 Feb 2013 13:33:28 +0000 (14:33 +0100)]
Add modules/ubuntu-online-accounts/google-*.service.in to POTFILES.skip

The files contain translations, but are already translated in their
original .in.in files, thus adding them into POTFILES.skip should be OK.

11 years agoFix few memory leaks in evolution-source-registry
Milan Crha [Tue, 12 Feb 2013 13:28:50 +0000 (14:28 +0100)]
Fix few memory leaks in evolution-source-registry

11 years agoBug #686528 - Pickup ownCloud accounts from GOA
Milan Crha [Tue, 12 Feb 2013 12:21:06 +0000 (13:21 +0100)]
Bug #686528 - Pickup ownCloud accounts from GOA

11 years agoUse camel_service_ref_session().
Matthew Barnes [Mon, 11 Feb 2013 13:07:52 +0000 (08:07 -0500)]
Use camel_service_ref_session().

11 years agoAdd camel_service_ref_session().
Matthew Barnes [Mon, 11 Feb 2013 12:34:46 +0000 (07:34 -0500)]
Add camel_service_ref_session().

Replaces camel_service_get_session().

CamelService now uses a GWeakRef instead of a weak pointer.

11 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 11 Feb 2013 13:36:45 +0000 (14:36 +0100)]
Updated Spanish translation

11 years agoUpdated Belarusian translation.
Ihar Hrachyshka [Mon, 11 Feb 2013 11:16:04 +0000 (14:16 +0300)]
Updated Belarusian translation.

11 years agoUpdated Galician translations
Fran Diéguez [Sun, 10 Feb 2013 14:43:56 +0000 (15:43 +0100)]
Updated Galician translations

11 years agoDeprecate e_client_cancel_all().
Matthew Barnes [Sun, 10 Feb 2013 12:36:18 +0000 (07:36 -0500)]
Deprecate e_client_cancel_all().

This function no longer does anything.

11 years agoEClient: Remove internal 'ops' hash table.
Matthew Barnes [Sun, 10 Feb 2013 12:33:13 +0000 (07:33 -0500)]
EClient: Remove internal 'ops' hash table.

This is no longer populated with anything.

11 years agoRemove e_client_emit_backend_property_changed().
Matthew Barnes [Sun, 10 Feb 2013 12:26:30 +0000 (07:26 -0500)]
Remove e_client_emit_backend_property_changed().

Private API, no longer used.

11 years agoRemove e_client_get_dbus_proxy().
Matthew Barnes [Sun, 10 Feb 2013 12:23:28 +0000 (07:23 -0500)]
Remove e_client_get_dbus_proxy().

Private API, no longer used.

11 years agoRemove e_client_emit_backend_error().
Matthew Barnes [Sun, 10 Feb 2013 12:22:09 +0000 (07:22 -0500)]
Remove e_client_emit_backend_error().

Private API, no longer used.

11 years agoRemove e_client_emit_backend_died().
Matthew Barnes [Sun, 10 Feb 2013 12:21:14 +0000 (07:21 -0500)]
Remove e_client_emit_backend_died().

Private API, no longer used.

11 years agoECalClient: Remove set_proxy_gone_error().
Matthew Barnes [Sat, 9 Feb 2013 21:52:33 +0000 (16:52 -0500)]
ECalClient: Remove set_proxy_gone_error().

ECalClient now keeps its GDBusProxy alive until dispose(), regardless
of what happens on the server side.  So we don't need to check whether
the GDBusProxy is still present in every method call anymore.  If the
bus name vanishes, let subsequent GDBusProxy calls fail on their own.

11 years agoECalClient: Use G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START.
Matthew Barnes [Sat, 9 Feb 2013 21:50:27 +0000 (16:50 -0500)]
ECalClient: Use G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START.

Set the DO_NOT_AUTO_START flag on new client-side proxies, so that if
the factory process crashes we don't restart it by way of some random
method call.  Until the backend's "open" procedure is fully automated
on the server-side, only new client instances should attempt to start
the factory process.

11 years agoECalClient: Use g_bus_watch_name_on_connection().
Matthew Barnes [Sat, 9 Feb 2013 21:48:43 +0000 (16:48 -0500)]
ECalClient: Use g_bus_watch_name_on_connection().

g_bus_watch_name_on_connection() handles "NameOwnerChanged" signals
as well as "closed" signals from the GDBusConnection.  In the event
the bus name vanishes, we schedule an idle callback on the client's
GMainContext to emit a "backend-died" signal.

Also while we're at it, call the close() method asynchronously from
dispose() so we don't block.

11 years agoEBookClient: Remove set_proxy_gone_error().
Matthew Barnes [Sat, 9 Feb 2013 16:28:19 +0000 (11:28 -0500)]
EBookClient: Remove set_proxy_gone_error().

EBookClient now keeps its GDBusProxy alive until dispose(), regardless
of what happens on the server side.  So we don't need to check whether
the GDBusProxy is still present in every method call anymore.  If the
bus name vanishes, let subsequent GDBusProxy calls fail on their own.

11 years agoEBookClient: Use G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START.
Matthew Barnes [Sat, 9 Feb 2013 17:06:23 +0000 (12:06 -0500)]
EBookClient: Use G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START.

Set the DO_NOT_AUTO_START flag on new client-side proxies, so that if
the factory process crashes we don't restart it by way of some random
method call.  Until the backend's "open" procedure is fully automated
on the server-side, only new client instances should attempt to start
the factory process.

11 years agoEBookClient: Use g_bus_watch_name_on_connection().
Matthew Barnes [Sat, 9 Feb 2013 15:37:31 +0000 (10:37 -0500)]
EBookClient: Use g_bus_watch_name_on_connection().

g_bus_watch_name_on_connection() handles "NameOwnerChanged" signals
as well as "closed" signals from the GDBusConnection.  In the event
the bus name vanishes, we schedule an idle callback on the client's
GMainContext to emit a "backend-died" signal.

Also while we're at it, call the close() method asynchronously from
dispose() so we don't block.

11 years agoECalClient: Fix build break.
Matthew Barnes [Sat, 9 Feb 2013 16:43:05 +0000 (11:43 -0500)]
ECalClient: Fix build break.

11 years agoDeprecate e_book_client_error_create().
Matthew Barnes [Sat, 9 Feb 2013 14:02:53 +0000 (09:02 -0500)]
Deprecate e_book_client_error_create().

Just use the GError API directly.

11 years agoDeprecate e_cal_client_error_create().
Matthew Barnes [Sat, 9 Feb 2013 13:45:23 +0000 (08:45 -0500)]
Deprecate e_cal_client_error_create().

Just use the GError API directly.

11 years agoECalClient: Set GErrors normally.
Matthew Barnes [Sat, 9 Feb 2013 13:39:16 +0000 (08:39 -0500)]
ECalClient: Set GErrors normally.

Set GErrors with g_set_error_literal(), using
e_cal_client_error_to_string() to obtain a generic error message.

11 years agoG_PRIORITY_HIGH_IDLE is sufficient to beat GTK+ redraws.
Matthew Barnes [Fri, 8 Feb 2013 19:08:00 +0000 (14:08 -0500)]
G_PRIORITY_HIGH_IDLE is sufficient to beat GTK+ redraws.

GTK+ uses (G_PRIORITY_HIGH_IDLE + 20) for redrawing operations, which is
actually a slightly lower priority than G_PRIORITY_HIGH_IDLE.  Therefore
for our purpose, G_PRIORITY_HIGH_IDLE is sufficient.

11 years agoAdd comments around g_idle_add() changes
Milan Crha [Fri, 8 Feb 2013 16:34:34 +0000 (17:34 +0100)]
Add comments around g_idle_add() changes

11 years agoBug #683867 - Schedule actions with higher idle priority
Michel Dänzer [Fri, 8 Feb 2013 11:06:52 +0000 (12:06 +0100)]
Bug #683867 - Schedule actions with higher idle priority

11 years agoECalClient: Follow up on a timezone-related FIXME comment.
Matthew Barnes [Fri, 8 Feb 2013 13:18:33 +0000 (08:18 -0500)]
ECalClient: Follow up on a timezone-related FIXME comment.

Emit the "timezone-added" signal from an idle callback on ECalClient's
GMainContext, instead of from whichever thread the timezone was added.
This makes life easier for any handlers of that signal.

Still need to address a similar FIXME comment in ECalBackend, but that
will have to wait until after the backend API rewrite.

11 years agoRevert "Bug #683867 - Schedule actions with higher idle priority"
Matthew Barnes [Fri, 8 Feb 2013 12:01:49 +0000 (07:01 -0500)]
Revert "Bug #683867 - Schedule actions with higher idle priority"

This reverts commit 224e8bed43ea13e34adbeef786a0d60f848bb170.

The commit contains not a single comment as to why these custom priority
values are being used.  The rationale needs to be documented in the code,
either at each call point or preferably at a centralized priority value
definition.

11 years agotest-server-utils.c: Added TEST_INSTALLED_SERVICES env var
Tristan Van Berkom [Fri, 8 Feb 2013 10:14:33 +0000 (19:14 +0900)]
test-server-utils.c: Added TEST_INSTALLED_SERVICES env var

This allows us to run tests individually using the installed services,
this makes it easier to trace the server process response to test
cases using instrumentation tools such as gdb and valgrind.

11 years agoBug #683867 - Schedule actions with higher idle priority
Michel Dänzer [Fri, 8 Feb 2013 11:06:52 +0000 (12:06 +0100)]
Bug #683867 - Schedule actions with higher idle priority

11 years agoe-test-server-utils: Destroy dynamic closures
Mathias Hasselmann [Thu, 7 Feb 2013 17:28:57 +0000 (18:28 +0100)]
e-test-server-utils: Destroy dynamic closures

Adds a callback to the closure structure that describes
its concept of self-destruction.

11 years agoEBookBackendFile: Restore g_type_ensure() calls
Mathias Hasselmann [Thu, 7 Feb 2013 16:31:37 +0000 (17:31 +0100)]
EBookBackendFile: Restore g_type_ensure() calls

Few things got lost in 01857aacc17e0da2766d6c03b3f84efb0cf1392d

11 years agoAdd CAMEL_MIME_FILTER_TOHTML_QUOTE_CITATION flag.
Matthew Barnes [Thu, 7 Feb 2013 15:18:05 +0000 (10:18 -0500)]
Add CAMEL_MIME_FILTER_TOHTML_QUOTE_CITATION flag.

Groups lines beginning with one or more '>' characters in
<blockquote type="cite"> ... </blockquote> tags.  The tags
are nested according to the number of '>' characters.

11 years agoDocument CamelMimeFilterToHTMLFlags.
Matthew Barnes [Thu, 7 Feb 2013 13:36:06 +0000 (08:36 -0500)]
Document CamelMimeFilterToHTMLFlags.

11 years agosqlitedb: Make BOOKSQL_DEBUG reusable
Mathias Hasselmann [Wed, 6 Feb 2013 18:17:49 +0000 (19:17 +0100)]
sqlitedb: Make BOOKSQL_DEBUG reusable

11 years agolibebook: Really extract the 2-letter country code
Mathias Hasselmann [Wed, 6 Feb 2013 18:09:12 +0000 (19:09 +0100)]
libebook: Really extract the 2-letter country code

Previous code took the locale-ids's language code
instead of the country code.

11 years agolibebook: Preserve predicate-order of sexps
Mathias Hasselmann [Wed, 6 Feb 2013 18:10:57 +0000 (19:10 +0100)]
libebook: Preserve predicate-order of sexps

When parsing conjunction and disjunction expressions the predicate order
got reversed, which breaks any optimizations that utilize lazy evaluation
or summary access patterns.

I am pretty sure I've fixed this once already.
No idea how to fix got lost.

11 years agosqlitedb: Remove unused <langinfo.h> include
Mathias Hasselmann [Wed, 6 Feb 2013 18:16:45 +0000 (19:16 +0100)]
sqlitedb: Remove unused <langinfo.h> include

11 years agotests: test e_phone_number_get_default_region()
Mathias Hasselmann [Thu, 7 Feb 2013 08:17:21 +0000 (09:17 +0100)]
tests: test e_phone_number_get_default_region()

11 years agolibebook: Improve phone-number docs and messages
Mathias Hasselmann [Wed, 6 Feb 2013 18:07:06 +0000 (19:07 +0100)]
libebook: Improve phone-number docs and messages

Be more strict about the terms "country calling code" which
relates to phone numbers, and "two-letter country code" which
identifies region.

11 years agoFix a memory leak from e_source_webdav_prepare_ssl_trust_prompt()
Milan Crha [Wed, 6 Feb 2013 18:05:53 +0000 (19:05 +0100)]
Fix a memory leak from e_source_webdav_prepare_ssl_trust_prompt()

11 years agoUpdated Galician translations
Fran Diéguez [Wed, 6 Feb 2013 17:36:45 +0000 (18:36 +0100)]
Updated Galician translations

11 years agoAdd CamelMimeFilterToHTMLFlags type.
Matthew Barnes [Wed, 6 Feb 2013 15:19:34 +0000 (10:19 -0500)]
Add CamelMimeFilterToHTMLFlags type.

Convert the CAMEL_MIME_FILTER_TOHTML_* flag macros to an enum type and
move it to camel-enums.h so a GFlagsClass is generated for it.

Use CamelMimeFilterToHTMLFlags as the 'flags' parameter type in
camel_mime_filter_tohtml_new() and camel_text_to_html().

11 years agoRemove --with-dbus-call-timeout configure option.
Matthew Barnes [Wed, 6 Feb 2013 12:55:08 +0000 (07:55 -0500)]
Remove --with-dbus-call-timeout configure option.

No longer needed.

11 years agoDeprecate e_data_server_util_get/set_dbus_call_timeout().
Matthew Barnes [Wed, 6 Feb 2013 12:53:32 +0000 (07:53 -0500)]
Deprecate e_data_server_util_get/set_dbus_call_timeout().

No longer used.

11 years agoSilence some runtime warnings from calendar backends.
Matthew Barnes [Wed, 6 Feb 2013 12:32:19 +0000 (07:32 -0500)]
Silence some runtime warnings from calendar backends.

11 years agoUpdated Spanish translation
Daniel Mustieles [Tue, 5 Feb 2013 16:10:34 +0000 (17:10 +0100)]
Updated Spanish translation

11 years agoUpdated POTFILES.in
Piotr Drąg [Mon, 4 Feb 2013 18:11:27 +0000 (19:11 +0100)]
Updated POTFILES.in

11 years agoEBookBackendFile: Implement GInitable.
Matthew Barnes [Mon, 4 Feb 2013 17:22:44 +0000 (12:22 -0500)]
EBookBackendFile: Implement GInitable.

Migrate the old BDB database and open the SQLite database in the
GInitable.init() method.  If an error occurs here, the backend instance
is destroyed immediately and the OpenAddressBook() factory method fails.

This obviates the need to check for an open SQLite handle in every
backend method.

11 years agoESourceRevisionGuards cleanups.
Matthew Barnes [Mon, 4 Feb 2013 17:09:22 +0000 (12:09 -0500)]
ESourceRevisionGuards cleanups.

11 years agolibebook: Add missing version tags
Mathias Hasselmann [Mon, 4 Feb 2013 17:11:09 +0000 (18:11 +0100)]
libebook: Add missing version tags

Some functions and types of the new e-phone-number module
didn't have version tags in their documentation.

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

11 years agolibebook: Export the API for phone region guessing
Mathias Hasselmann [Fri, 1 Feb 2013 13:56:11 +0000 (14:56 +0100)]
libebook: Export the API for phone region guessing

This adds e_phone_number_get_country_code_for_region() and
e_phone_number_get_default_region() which give access to the
region guessing mechanisms. They are needed to efficently
build the sqlite backend's phone number indexes.

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

11 years agolibebook: Give access to country code and national phone number
Mathias Hasselmann [Fri, 25 Jan 2013 13:51:01 +0000 (14:51 +0100)]
libebook: Give access to country code and national phone number

This information is needed to build a more efficient phone number index.

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

11 years agobuild: Use dedicated compiler warning for C and C++ code
Mathias Hasselmann [Fri, 25 Jan 2013 04:28:53 +0000 (05:28 +0100)]
build: Use dedicated compiler warning for C and C++ code

Not all compiler warning flags that are valid for C are valid
for C++, and vise versa.

11 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 4 Feb 2013 16:46:57 +0000 (17:46 +0100)]
Updated Spanish translation

11 years agoAdd e_data_factory_ref_initable_backend().
Matthew Barnes [Tue, 22 Jan 2013 21:28:05 +0000 (16:28 -0500)]
Add e_data_factory_ref_initable_backend().

Similar to e_data_factory_ref_backend(), but allows for backends that
implement the GInitable interface so they can fail gracefully if they
are unable to initialize critical resources, such as a cache database.

11 years agoECalClient: Avoid race between dispose() and signal handlers.
Matthew Barnes [Mon, 4 Feb 2013 16:08:08 +0000 (11:08 -0500)]
ECalClient: Avoid race between dispose() and signal handlers.

Use g_signal_connect_object() to ensure the GDBusProxy stays alive while
its signal handlers are running.

11 years agoEBookClient: Avoid race between dispose() and signal handlers.
Matthew Barnes [Mon, 4 Feb 2013 16:06:17 +0000 (11:06 -0500)]
EBookClient: Avoid race between dispose() and signal handlers.

Use g_signal_connect_object() to ensure the GDBusProxy stays alive while
its signal handlers are running.

11 years agoDeprecate e-gdbus-templates.[ch].
Matthew Barnes [Mon, 4 Feb 2013 12:42:19 +0000 (07:42 -0500)]
Deprecate e-gdbus-templates.[ch].

11 years agoBug #675287 - Spool file account doesn't show messages
Milan Crha [Mon, 4 Feb 2013 11:56:26 +0000 (12:56 +0100)]
Bug #675287 - Spool file account doesn't show messages