[tracker] plugins: evolution: Fixed for upstream symbol rename in 2.29.1
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] plugins: evolution: Fixed for upstream symbol rename in 2.29.1
- Date: Mon, 15 Mar 2010 10:42:36 +0000 (UTC)
commit eb0bb8e671730572686815fbe9b401d8fd5c78c3
Author: Philip Van Hoof <philip codeminded be>
Date: Mon Mar 15 11:40:02 2010 +0100
plugins: evolution: Fixed for upstream symbol rename in 2.29.1
Fixes GNOME Bug #612744
src/plugins/evolution/tracker-evolution-plugin.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/evolution/tracker-evolution-plugin.c b/src/plugins/evolution/tracker-evolution-plugin.c
index a0e56ec..64fe1ef 100644
--- a/src/plugins/evolution/tracker-evolution-plugin.c
+++ b/src/plugins/evolution/tracker-evolution-plugin.c
@@ -70,6 +70,11 @@
#include <libedataserver/e-account.h>
#include <libedataserver/e-account-list.h>
+#include <libedataserver/eds-version.h>
+
+#if EDS_CHECK_VERSION (2, 29, 1)
+#include <e-util/e-account-utils.h>
+#endif
#include <libtracker-client/tracker.h>
#include <libtracker-client/tracker-sparql-builder.h>
@@ -2284,7 +2289,11 @@ tracker_evolution_plugin_init (TrackerEvolutionPlugin *plugin)
G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING,
G_TYPE_INVALID);
+#if EDS_CHECK_VERSION (2, 29, 1)
+ priv->accounts = g_object_ref (e_get_account_list ());
+#else
priv->accounts = g_object_ref (mail_config_get_accounts ());
+#endif
for (it = e_list_get_iterator (E_LIST (priv->accounts)); e_iterator_is_valid (it); e_iterator_next (it)) {
register_account (plugin, (EAccount *) e_iterator_get (it));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]