[tracker/libtracker-miner] Reduce names shown in tracker-status to not show org.freedesktop...
- From: Martyn James Russell <mr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker/libtracker-miner] Reduce names shown in tracker-status to not show org.freedesktop...
- Date: Thu, 27 Aug 2009 16:50:07 +0000 (UTC)
commit f010458aaad6c95690f6c8a6782de070a448f819
Author: Martyn Russell <martyn lanedo com>
Date: Thu Aug 27 16:56:04 2009 +0100
Reduce names shown in tracker-status to not show org.freedesktop...
src/tracker-utils/tracker-status.c | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker-utils/tracker-status.c b/src/tracker-utils/tracker-status.c
index 2823aca..f5c223c 100644
--- a/src/tracker-utils/tracker-status.c
+++ b/src/tracker-utils/tracker-status.c
@@ -505,8 +505,17 @@ main (gint argc, gchar *argv[])
g_print ("%s:\n", _("Miners"));
for (l = miners_available; l; l = l->next) {
+ const gchar *name;
gboolean is_running;
+ if (!strstr (l->data, TRACKER_MINER_DBUS_NAME_PREFIX)) {
+ g_critical ("We have a miner without the dbus name prefix? '%s'",
+ (gchar*) l->data);
+ continue;
+ }
+
+ name = (gchar*) l->data + strlen (TRACKER_MINER_DBUS_NAME_PREFIX);
+
is_running = tracker_string_in_gslist (l->data, miners_running);
if (is_running) {
@@ -522,7 +531,7 @@ main (gint argc, gchar *argv[])
is_paused ? "P" : "R",
_("Progress"),
progress * 100,
- (gchar*) l->data,
+ name,
_("Status"),
status ? status : _("Unknown"));
@@ -531,7 +540,7 @@ main (gint argc, gchar *argv[])
g_print (" [ ] %s: %3.0f%%, %s\n",
_("Progress"),
0.0,
- (gchar*) l->data);
+ name);
}
}
@@ -546,6 +555,7 @@ main (gint argc, gchar *argv[])
g_print ("Press Ctrl+C to end follow of Tracker state\n");
+#if 0
proxy = client->proxy_statistics;
/* Set signal handlers */
@@ -608,6 +618,7 @@ main (gint argc, gchar *argv[])
/* G_CALLBACK (index_service_stats_updated), */
/* NULL, */
/* NULL); */
+#endif
initialize_signal_handler ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]