[tracker] tracker-control: Use full API to get miner manager and report errors
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-control: Use full API to get miner manager and report errors
- Date: Thu, 2 Jun 2011 16:46:11 +0000 (UTC)
commit f70320b982c8e9e82e27fe8da979060e27b863c0
Author: Martyn Russell <martyn lanedo com>
Date: Thu Jun 2 17:12:48 2011 +0100
tracker-control: Use full API to get miner manager and report errors
This is for cases where we just report status of all miners and processes
src/tracker-control/tracker-control-general.c | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-control/tracker-control-general.c b/src/tracker-control/tracker-control-general.c
index f4f1f90..4c2d812 100644
--- a/src/tracker-control/tracker-control-general.c
+++ b/src/tracker-control/tracker-control-general.c
@@ -554,7 +554,17 @@ tracker_control_general_run (void)
g_print ("%s\n", _("Starting minersâ?¦"));
- manager = tracker_miner_manager_new ();
+
+ /* Auto-start the miners here */
+ manager = tracker_miner_manager_new_full (TRUE, &error);
+ if (!manager) {
+ g_printerr (_("Could not start miners, manager could not be created, %s"),
+ error ? error->message : "unknown error");
+ g_printerr ("\n");
+ g_clear_error (&error);
+ return EXIT_FAILURE;
+ }
+
miners = tracker_miner_manager_get_available (manager);
/* Get the status of all miners, this will start all
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]