[tracker/tracker-0.10] 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-0.10] tracker-control: Use full API to get miner manager and report errors
- Date: Thu, 2 Jun 2011 17:20:52 +0000 (UTC)
commit 3c639ee1373f64f08273e0880c684fbe597f698f
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 4d08602..3f9f3ff 100644
--- a/src/tracker-control/tracker-control-general.c
+++ b/src/tracker-control/tracker-control-general.c
@@ -553,7 +553,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]