[gnome-documents] build: Replace tracker-miner with tracker-control



commit 2ec12da975fbed7e81e5a6d5afc794774cca51ae
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Feb 21 11:10:38 2014 +0100

    build: Replace tracker-miner with tracker-control
    
    ... because TrackerMinerManager now lives in tracker-control after a
    round of API clean up in 0.17.3.

 configure.ac         |    4 ++--
 src/Makefile-lib.am  |    1 -
 src/application.js   |    6 +++---
 src/lib/gd-utils.h   |    1 -
 src/notifications.js |    4 ++--
 5 files changed, 7 insertions(+), 9 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 2c4a8a8..80bc1f4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -54,7 +54,7 @@ GTK_MIN_VERSION=3.11.4
 GOBJECT_INTROSPECTION_MIN_VERSION=1.31.6
 GDATA_MIN_VERSION=0.13.3
 GOA_MIN_VERSION=3.2.0
-TRACKER_MIN_VERSION=0.13.1
+TRACKER_MIN_VERSION=0.17.3
 ZAPOJIT_MIN_VERSION=0.0.2
 SOUP_MIN_VERSION=2.41.3
 
@@ -80,7 +80,7 @@ PKG_CHECK_MODULES(DOCUMENTS,
                   gtk+-3.0 >= $GTK_MIN_VERSION
                   libsoup-2.4 >= $SOUP_MIN_VERSION
                   gnome-desktop-3.0
-                  tracker-miner-1.0 >= $TRACKER_MIN_VERSION
+                  tracker-control-1.0 >= $TRACKER_MIN_VERSION
                   tracker-sparql-1.0 >= $TRACKER_MIN_VERSION
                   goa-1.0 >= $GOA_MIN_VERSION
                   libgdata >= $GDATA_MIN_VERSION
diff --git a/src/Makefile-lib.am b/src/Makefile-lib.am
index cef8609..51347b5 100644
--- a/src/Makefile-lib.am
+++ b/src/Makefile-lib.am
@@ -63,7 +63,6 @@ GdPrivate_1_0_gir_INCLUDES = \
    Gtk-3.0 \
    EvinceDocument-3.0 \
    EvinceView-3.0 \
-   TrackerMiner-1.0 \
    Zpj-0.0
 
 GdPrivate_1_0_gir_FILES = \
diff --git a/src/application.js b/src/application.js
index 7ad087b..7a0a005 100644
--- a/src/application.js
+++ b/src/application.js
@@ -29,7 +29,7 @@ const _ = imports.gettext.gettext;
 imports.gi.versions.GdPrivate = '1.0';
 imports.gi.versions.Gd = '1.0';
 imports.gi.versions.Tracker = '1.0';
-imports.gi.versions.TrackerMiner = '1.0';
+imports.gi.versions.TrackerControl = '1.0';
 imports.gi.versions.EvinceDocument = '3.0';
 imports.gi.versions.Goa = '1.0';
 imports.gi.versions.WebKit = '3.0';
@@ -42,7 +42,7 @@ const Goa = imports.gi.Goa;
 const Gtk = imports.gi.Gtk;
 const GLib = imports.gi.GLib;
 const Tracker = imports.gi.Tracker;
-const TrackerMiner = imports.gi.TrackerMiner;
+const TrackerControl = imports.gi.TrackerControl;
 
 const ChangeMonitor = imports.changeMonitor;
 const Documents = imports.documents;
@@ -112,7 +112,7 @@ const Application = new Lang.Class({
     },
 
     _initGettingStarted: function() {
-        let manager = TrackerMiner.MinerManager.new_full(false);
+        let manager = TrackerControl.MinerManager.new_full(false);
 
         let languages = GLib.get_language_names();
         let files = languages.map(
diff --git a/src/lib/gd-utils.h b/src/lib/gd-utils.h
index a9ae317..d7a58c1 100644
--- a/src/lib/gd-utils.h
+++ b/src/lib/gd-utils.h
@@ -24,7 +24,6 @@
 
 #include <gtk/gtk.h>
 #include <evince-view.h>
-#include <libtracker-miner/tracker-miner.h>
 
 void gd_queue_thumbnail_job_for_file_async (GFile *file,
                                             GAsyncReadyCallback callback,
diff --git a/src/notifications.js b/src/notifications.js
index 762dd55..4133f9e 100644
--- a/src/notifications.js
+++ b/src/notifications.js
@@ -23,7 +23,7 @@ const Gd = imports.gi.Gd;
 const Gio = imports.gi.Gio;
 const GLib = imports.gi.GLib;
 const Gtk = imports.gi.Gtk;
-const TrackerMiner = imports.gi.TrackerMiner;
+const TrackerControl = imports.gi.TrackerControl;
 const _ = imports.gettext.gettext;
 
 const Application = imports.application;
@@ -104,7 +104,7 @@ const IndexingNotification = new Lang.Class({
         this._timeoutId = 0;
 
         try {
-            this._manager = TrackerMiner.MinerManager.new_full(false);
+            this._manager = TrackerControl.MinerManager.new_full(false);
             this._manager.connect('miner-progress', Lang.bind(this, this._checkNotification));
         } catch(e) {
             log('Unable to create a TrackerMinerManager, indexing progress ' +


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]