tracker r1496 - in branches/indexer-split: . src/trackerd
- From: pvanhoof svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r1496 - in branches/indexer-split: . src/trackerd
- Date: Tue, 27 May 2008 09:36:48 +0000 (UTC)
Author: pvanhoof
Date: Tue May 27 09:36:48 2008
New Revision: 1496
URL: http://svn.gnome.org/viewvc/tracker?rev=1496&view=rev
Log:
svn merge -r 1481:1495 ../xesam-support
Modified:
branches/indexer-split/ChangeLog
branches/indexer-split/src/trackerd/tracker-dbus.c
Modified: branches/indexer-split/src/trackerd/tracker-dbus.c
==============================================================================
--- branches/indexer-split/src/trackerd/tracker-dbus.c (original)
+++ branches/indexer-split/src/trackerd/tracker-dbus.c Tue May 27 09:36:48 2008
@@ -131,7 +131,7 @@
DBusGProxy **xesam_out)
{
DBusGConnection *connection;
- DBusGProxy *proxy, *xesam;
+ DBusGProxy *proxy, *xesam = NULL;
GError *error = NULL;
g_return_val_if_fail (tracker != NULL, FALSE);
@@ -159,17 +159,19 @@
return FALSE;
}
- /* The definitions below (DBUS_SERVICE_DBUS, etc) are
- * predefined for us to just use.
- */
- xesam = dbus_g_proxy_new_for_name (connection,
+ if (tracker_config_get_enable_xesam (tracker->config)) {
+ /* The definitions below (DBUS_SERVICE_DBUS, etc) are
+ * predefined for us to just use.
+ */
+ xesam = dbus_g_proxy_new_for_name (connection,
DBUS_SERVICE_DBUS,
DBUS_PATH_DBUS,
DBUS_INTERFACE_DBUS);
- /* Set up the main tracker service */
- if (!dbus_register_service (xesam, TRACKER_DBUS_XESAM_SERVICE)) {
- return FALSE;
+ /* Set up the main tracker service */
+ if (!dbus_register_service (xesam, TRACKER_DBUS_XESAM_SERVICE)) {
+ return FALSE;
+ }
}
*connection_out = connection;
@@ -265,7 +267,7 @@
g_object_set (object, "email-index", tracker->email_index, NULL);
objects = g_slist_prepend (objects, object);
- if (tracker_config_get_enable_xesam (tracker->config)) {
+ if (xesam) {
/* Add org.freedesktop.xesam.Search */
if (!(object = dbus_register_object (connection,
xesam,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]