diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2018-09-09 22:44:42 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2018-09-09 22:44:42 +0200 |
commit | d73f8b4aa3391feaf6645e8d138b0be531771441 (patch) | |
tree | b5fa6b43631fee93081570aeb645f4595c07396d /src/libtracker-sparql/tracker-notifier.c | |
parent | 8a9722798d169e11838ec51a2553d1fe76acbb83 (diff) | |
download | tracker-d73f8b4aa3391feaf6645e8d138b0be531771441.tar.gz |
Revert "Revert "Add tracker_sparql_connection_get/set_dbus_connection()""
This reverts commit df768eff07c817924f431ece0d09a24edab74de2.
Now that we branched for tracker-2.2, reintroduce this new API.
Diffstat (limited to 'src/libtracker-sparql/tracker-notifier.c')
-rw-r--r-- | src/libtracker-sparql/tracker-notifier.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libtracker-sparql/tracker-notifier.c b/src/libtracker-sparql/tracker-notifier.c index d0cf748b3..4f7647d24 100644 --- a/src/libtracker-sparql/tracker-notifier.c +++ b/src/libtracker-sparql/tracker-notifier.c @@ -704,7 +704,9 @@ tracker_notifier_initable_init (GInitable *initable, tracker_notifier_cache_id (notifier, "nie:dataSource"); tracker_notifier_cache_id (notifier, "tracker:extractor-data-source"); - priv->dbus_connection = g_bus_get_sync (G_BUS_TYPE_SESSION, cancellable, error); + priv->dbus_connection = tracker_sparql_connection_get_dbus_connection (); + if (!priv->dbus_connection) + priv->dbus_connection = g_bus_get_sync (G_BUS_TYPE_SESSION, cancellable, error); if (!priv->dbus_connection) return FALSE; |