[tracker] tracker-needle: Use BusType.SESSION for getting tracker-store stats



commit 043948914385859475d9df736a09f1b430417e95
Author: Martyn Russell <martyn lanedo com>
Date:   Tue Mar 18 16:54:31 2014 +0000

    tracker-needle: Use BusType.SESSION for getting tracker-store stats
    
    Fixes build. Was using Tracker.Bus.type(), which is from tracker-store.
    We could depend on libtracker-common and call Tracker.IPC.bus, but I don't
    want to add the dep. It's quite unlikely people use tracker-needle on the
    SYSTEM bus anyway.

 src/tracker-needle/tracker-stats.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-needle/tracker-stats.vala b/src/tracker-needle/tracker-stats.vala
index dfb07c4..ffe930d 100644
--- a/src/tracker-needle/tracker-stats.vala
+++ b/src/tracker-needle/tracker-stats.vala
@@ -43,7 +43,7 @@ public class Tracker.Stats : Dialog {
                debug ("Setting up statistics D-Bus connection");
 
                try {
-                       tracker = GLib.Bus.get_proxy_sync (Tracker.Bus.type (),
+                       tracker = GLib.Bus.get_proxy_sync (BusType.SESSION,
                                                           "org.freedesktop.Tracker1",
                                                           "/org/freedesktop/Tracker1/Statistics",
                                                           DBusProxyFlags.DO_NOT_LOAD_PROPERTIES | 
DBusProxyFlags.DO_NOT_CONNECT_SIGNALS);


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