[folks/wip/ricotz/vala: 3/3] tests: Drop custom binding and use E.SourceRegistry constructor
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks/wip/ricotz/vala: 3/3] tests: Drop custom binding and use E.SourceRegistry constructor
- Date: Tue, 4 Feb 2020 06:16:34 +0000 (UTC)
commit 4092dd18144587d1284bd9ea474631ddcf10152d
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Feb 3 14:09:03 2020 +0100
tests: Drop custom binding and use E.SourceRegistry constructor
tests/lib/eds/backend.vala | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/tests/lib/eds/backend.vala b/tests/lib/eds/backend.vala
index e9fc587c..74bf9b63 100644
--- a/tests/lib/eds/backend.vala
+++ b/tests/lib/eds/backend.vala
@@ -22,11 +22,6 @@ using E;
using Folks;
using Random;
-/* The following function is needed in order to use the async SourceRegistry
- * constructor. FIXME: https://bugzilla.gnome.org/show_bug.cgi?id=659886 */
-[CCode (cname = "e_source_registry_new", cheader_filename = "libedataserver/libedataserver.h", finish_name =
"e_source_registry_new_finish")]
-internal extern static async E.SourceRegistry create_source_registry (GLib.Cancellable? cancellable = null)
throws GLib.Error;
-
errordomain EdsTest.BackendSetupError
{
FETCH_SOURCE_GROUP_FAILED,
@@ -162,7 +157,7 @@ public class EdsTest.Backend
false, FileCreateFlags.NONE, null, null);
/* Build a SourceRegistry to manage the sources. */
- var source_registry = yield create_source_registry (null);
+ var source_registry = yield new E.SourceRegistry (null);
this._source_registry = source_registry;
var signal_id = source_registry.source_added.connect ((r, s) =>
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]