[tracker] tracker-search-bar: Better debugging
- From: Martyn James Russell <mr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] tracker-search-bar: Better debugging
- Date: Mon, 30 Nov 2009 21:34:19 +0000 (UTC)
commit 7b8d17bc5de9e8c38060acadb1cace00d77ee0c2
Author: Martyn Russell <martyn lanedo com>
Date: Mon Nov 30 09:16:00 2009 +0000
tracker-search-bar: Better debugging
src/tracker-search-bar/tracker-results-window.c | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker-search-bar/tracker-results-window.c b/src/tracker-search-bar/tracker-results-window.c
index bd8ec53..675da1b 100644
--- a/src/tracker-search-bar/tracker-results-window.c
+++ b/src/tracker-search-bar/tracker-results-window.c
@@ -127,6 +127,7 @@ static void model_set_up (TrackerResultsWindow *window)
static void search_get (TrackerResultsWindow *window,
TrackerCategory category);
static void search_start (TrackerResultsWindow *window);
+static gchar * category_to_string (TrackerCategory category);
enum {
COL_CATEGORY_ID,
@@ -1009,11 +1010,16 @@ search_get_cb (GPtrArray *results,
}
if (!results) {
- g_print ("No results were found matching the query\n");
+ g_print ("No results were found matching the query in category:%d->'%s'\n",
+ sq->category,
+ category_to_string (sq->category));
} else {
GSList *l;
- g_print ("Results: %d\n", results->len);
+ g_print ("Results: %d for category:%d->'%s'\n",
+ results->len,
+ sq->category,
+ category_to_string (sq->category));
if (results->len > 0) {
g_ptr_array_foreach (results,
@@ -1044,6 +1050,10 @@ search_get_cb (GPtrArray *results,
search_query_free (sq);
search_window_ensure_not_blank (window);
+
+ if (priv->queries_pending < 1) {
+ g_print ("\n\n\n");
+ }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]