[tracker] tracker-search-bar: Show 10 results not 5 per category
- From: Martyn James Russell <mr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] tracker-search-bar: Show 10 results not 5 per category
- Date: Mon, 30 Nov 2009 21:34:34 +0000 (UTC)
commit 3255aa6305616b70f74be1003373486694582309
Author: Martyn Russell <martyn lanedo com>
Date: Mon Nov 30 09:55:27 2009 +0000
tracker-search-bar: Show 10 results not 5 per category
src/tracker-search-bar/tracker-results-window.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/tracker-search-bar/tracker-results-window.c b/src/tracker-search-bar/tracker-results-window.c
index 2e0d937..119010e 100644
--- a/src/tracker-search-bar/tracker-results-window.c
+++ b/src/tracker-search-bar/tracker-results-window.c
@@ -35,7 +35,7 @@
#include "tracker-results-window.h"
#include "tracker-aligned-window.h"
-#define MAX_ITEMS 5
+#define MAX_ITEMS 10
#define MUSIC_QUERY "SELECT ?urn ?title ?belongs fts:rank(?urn) WHERE { ?urn a nfo:Audio ; nfo:fileName ?title ; nfo:belongsToContainer ?belongs . ?urn fts:match \"%s*\" } ORDER BY DESC(fts:rank(?urn)) OFFSET 0 LIMIT %d"
#define IMAGE_QUERY "SELECT ?urn ?title ?belongs fts:rank(?urn) WHERE { ?urn a nfo:Image ; nfo:fileName ?title ; nfo:belongsToContainer ?belongs . ?urn fts:match \"%s*\" } ORDER BY DESC(fts:rank(?urn)) OFFSET 0 LIMIT %d"
@@ -1010,15 +1010,13 @@ search_get_cb (GPtrArray *results,
}
if (!results) {
- g_print ("No results were found matching the query in category:%d->'%s'\n",
- sq->category,
+ g_print ("No results were found matching the query in category:'%s'\n",
category_to_string (sq->category));
} else {
GSList *l;
- g_print ("Results: %d for category:%d->'%s'\n",
+ g_print ("Results: %d for category:'%s'\n",
results->len,
- sq->category,
category_to_string (sq->category));
if (results->len > 0) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]