[gnome-games/wip/exalm/tracker-sandbox] f
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/tracker-sandbox] f
- Date: Fri, 18 Jan 2019 15:06:43 +0000 (UTC)
commit 2d8553c727c1b13156a0a28fb7d928a8008fe1f8
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Fri Jan 18 20:06:13 2019 +0500
f
meson.build | 1 +
src/meson.build | 1 +
src/ui/application.vala | 8 ++++++++
3 files changed, 10 insertions(+)
---
diff --git a/meson.build b/meson.build
index e047d986..c7cebacc 100644
--- a/meson.build
+++ b/meson.build
@@ -42,6 +42,7 @@ retro_gtk_dep = dependency ('retro-gtk-0.14', version: '>=' + retro_gtk_min_vers
rsvg_dep = dependency ('librsvg-2.0')
soup_dep = dependency ('libsoup-2.4')
sqlite_dep = dependency ('sqlite3')
+tracker_control_dep = dependency ('tracker-control-2.0')
tracker_sparql_dep = dependency ('tracker-sparql-2.0')
xml_dep = dependency ('libxml-2.0')
diff --git a/src/meson.build b/src/meson.build
index 94bb1055..2481b3c4 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -213,6 +213,7 @@ dependencies = [
rsvg_dep,
soup_dep,
sqlite_dep,
+ tracker_control_dep,
tracker_sparql_dep,
xml_dep,
valac.find_library ('linux'),
diff --git a/src/ui/application.vala b/src/ui/application.vala
index 7eb74984..d136c5b6 100644
--- a/src/ui/application.vala
+++ b/src/ui/application.vala
@@ -12,6 +12,7 @@ public class Games.Application : Gtk.Application {
private bool game_list_loaded;
private GameCollection game_collection;
+ private Tracker.MinerManager tracker_miner_manager;
private Manette.Monitor manette_monitor;
@@ -252,6 +253,13 @@ public class Games.Application : Gtk.Application {
Tracker.Sparql.Connection.set_domain (Config.APPLICATION_ID);
var connection = Tracker.Sparql.Connection.@get ();
tracker_uri_source = new TrackerUriSource (connection);
+
+ tracker_miner_manager = new Tracker.MinerManager ();
+
+ message("ontology: %s", tracker_miner_manager.domain_ontology);
+ var services = tracker_miner_manager.get_running ();
+ foreach (var service in services)
+ message("miner: %s", service);
}
catch (Error e) {
debug (e.message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]