[tracker] libtracker-sparql: Don't use internal tracker_ipc_bus() function in examples/



commit 963e53eb79a5b727ef008a875f16005e4c6d67dd
Author: Martyn Russell <martyn lanedo com>
Date:   Thu Mar 20 11:15:17 2014 +0000

    libtracker-sparql: Don't use internal tracker_ipc_bus() function in examples/
    
    We don't want people copying this code and then having linking problems and
    3rd party apps using libtracker-sparql shouldn't be depending on internal
    functions or libraries like libtracker-common.

 examples/libtracker-sparql/class-signal.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/examples/libtracker-sparql/class-signal.c b/examples/libtracker-sparql/class-signal.c
index 02a8287..3ba2ab3 100644
--- a/examples/libtracker-sparql/class-signal.c
+++ b/examples/libtracker-sparql/class-signal.c
@@ -19,8 +19,6 @@
 
 #include <gio/gio.h>
 
-#include <libtracker-common/tracker-common.h>
-
 #include <libtracker-sparql/tracker-sparql.h>
 
 static TrackerSparqlConnection *con;
@@ -89,7 +87,7 @@ main (gint argc, gchar *argv[])
 
        loop = g_main_loop_new (NULL, FALSE);
        con = tracker_sparql_connection_get (NULL, &error);
-       connection = g_bus_get_sync (TRACKER_IPC_BUS, NULL, NULL);
+       connection = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, NULL);
 
        signal_id = g_dbus_connection_signal_subscribe (connection,
                                                        TRACKER_DBUS_SERVICE,


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