[evolution-data-server/account-mgmt: 13/43] Adapt libebackend to the new ESource API.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/account-mgmt: 13/43] Adapt libebackend to the new ESource API.
- Date: Wed, 18 Apr 2012 19:55:00 +0000 (UTC)
commit 749f521baa1a5a3c864880b0e38c82bc70329a05
Author: Matthew Barnes <mbarnes redhat com>
Date: Mon Sep 12 14:12:15 2011 -0400
Adapt libebackend to the new ESource API.
.../reference/libebackend/tmpl/e-dbus-service.sgml | 76 ------
libebackend/e-data-factory.c | 2 +-
libebackend/e-dbus-server.c | 6 +-
libebackend/e-dbus-service.c | 251 --------------------
libebackend/e-dbus-service.h | 86 -------
5 files changed, 5 insertions(+), 416 deletions(-)
---
diff --git a/libebackend/e-data-factory.c b/libebackend/e-data-factory.c
index 8f5dfe7d..dded87f 100644
--- a/libebackend/e-data-factory.c
+++ b/libebackend/e-data-factory.c
@@ -224,7 +224,7 @@ e_data_factory_ref_backend (EDataFactory *data_factory,
g_return_val_if_fail (hash_key != NULL, NULL);
g_return_val_if_fail (E_IS_SOURCE (source), NULL);
- uid = e_source_peek_uid (source);
+ uid = e_source_get_uid (source);
g_return_val_if_fail (uid != NULL, NULL);
g_mutex_lock (data_factory->priv->mutex);
diff --git a/libebackend/e-dbus-server.c b/libebackend/e-dbus-server.c
index d21c61c..917ea44 100644
--- a/libebackend/e-dbus-server.c
+++ b/libebackend/e-dbus-server.c
@@ -31,6 +31,7 @@
#endif
#include <libebackend/e-module.h>
+#include <libebackend/e-extensible.h>
#include <libebackend/e-backend-enumtypes.h>
#define E_DBUS_SERVER_GET_PRIVATE(obj) \
@@ -65,8 +66,9 @@ static guint signals[LAST_SIGNAL];
static GHashTable *directories_loaded;
G_LOCK_DEFINE_STATIC (directories_loaded);
-G_DEFINE_ABSTRACT_TYPE (
- EDBusServer, e_dbus_server, G_TYPE_OBJECT)
+G_DEFINE_ABSTRACT_TYPE_WITH_CODE (
+ EDBusServer, e_dbus_server, G_TYPE_OBJECT,
+ G_IMPLEMENT_INTERFACE (E_TYPE_EXTENSIBLE, NULL))
static void
dbus_server_bus_acquired_cb (GDBusConnection *connection,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]