[tracker/wip/carlosg/tracker-3.0-api-breaks: 26/92] libtracker-bus: Implement TrackerSparqlConnection::create_notifier
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/tracker-3.0-api-breaks: 26/92] libtracker-bus: Implement TrackerSparqlConnection::create_notifier
- Date: Wed, 5 Feb 2020 12:27:53 +0000 (UTC)
commit 4bfe36ef53f8f0ecd525ee427b523f7d39a9e5ab
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Dec 20 18:30:14 2019 +0100
libtracker-bus: Implement TrackerSparqlConnection::create_notifier
The notifiers created through it subscribe by default to events from
the same service.
src/libtracker-bus/tracker-bus.vala | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/src/libtracker-bus/tracker-bus.vala b/src/libtracker-bus/tracker-bus.vala
index e02eef7d7..185368abf 100644
--- a/src/libtracker-bus/tracker-bus.vala
+++ b/src/libtracker-bus/tracker-bus.vala
@@ -288,4 +288,12 @@ public class Tracker.Bus.Connection : Tracker.Sparql.Connection {
handle_error_reply (reply);
return reply.get_body ().get_child_value (0);
}
+
+ public override Tracker.Notifier? create_notifier (Tracker.NotifierFlags flags) {
+ var notifier = (Tracker.Notifier) Object.new (typeof (Tracker.Notifier));
+
+ notifier.signal_subscribe (this.bus, this.dbus_name, null);
+
+ return notifier;
+ }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]