[tracker/libtracker-sparql-porting: 32/36] tracker-utils: Fix whitespace problems in tracker-search.c
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/libtracker-sparql-porting: 32/36] tracker-utils: Fix whitespace problems in tracker-search.c
- Date: Fri, 13 Aug 2010 14:34:11 +0000 (UTC)
commit 297ce386e60a8abf054096f4dee6ea82e6bc1991
Author: Philip Van Hoof <philip codeminded be>
Date: Fri Aug 6 16:14:57 2010 +0200
tracker-utils: Fix whitespace problems in tracker-search.c
src/tracker-utils/tracker-search.c | 90 +++++++++++++++++------------------
1 files changed, 44 insertions(+), 46 deletions(-)
---
diff --git a/src/tracker-utils/tracker-search.c b/src/tracker-utils/tracker-search.c
index b4aea72..1d2bce4 100644
--- a/src/tracker-utils/tracker-search.c
+++ b/src/tracker-utils/tracker-search.c
@@ -197,9 +197,9 @@ get_fts_string (GStrv search_words,
static gboolean
get_contacts_results (TrackerSparqlConnection *connection,
- const gchar *query,
- gint search_limit,
- gboolean details)
+ const gchar *query,
+ gint search_limit,
+ gboolean details)
{
GError *error = NULL;
TrackerSparqlCursor *cursor;
@@ -252,12 +252,12 @@ get_contacts_results (TrackerSparqlConnection *connection,
static gboolean
get_contacts (TrackerSparqlConnection *connection,
- GStrv search_terms,
- gboolean show_all,
- gint search_offset,
- gint search_limit,
- gboolean use_or_operator,
- gboolean details)
+ GStrv search_terms,
+ gboolean show_all,
+ gint search_offset,
+ gint search_limit,
+ gboolean use_or_operator,
+ gboolean details)
{
gchar *fts;
gchar *query;
@@ -302,9 +302,9 @@ get_contacts (TrackerSparqlConnection *connection,
static gboolean
get_emails_results (TrackerSparqlConnection *connection,
- const gchar *query,
- gint search_limit,
- gboolean details)
+ const gchar *query,
+ gint search_limit,
+ gboolean details)
{
GError *error = NULL;
TrackerSparqlCursor *cursor;
@@ -357,12 +357,12 @@ get_emails_results (TrackerSparqlConnection *connection,
static gboolean
get_emails (TrackerSparqlConnection *connection,
- GStrv search_terms,
- gboolean show_all,
- gint search_offset,
- gint search_limit,
- gboolean use_or_operator,
- gboolean details)
+ GStrv search_terms,
+ gboolean show_all,
+ gint search_offset,
+ gint search_limit,
+ gboolean use_or_operator,
+ gboolean details)
{
gchar *fts;
gchar *query;
@@ -411,7 +411,7 @@ static gboolean
get_files_results (TrackerSparqlConnection *connection,
const gchar *query,
gint search_limit,
- gboolean details)
+ gboolean details)
{
GError *error = NULL;
TrackerSparqlCursor *cursor;
@@ -467,7 +467,7 @@ get_document_files (TrackerSparqlConnection *connection,
gint search_offset,
gint search_limit,
gboolean use_or_operator,
- gboolean details)
+ gboolean details)
{
gchar *fts;
gchar *query;
@@ -519,7 +519,7 @@ get_video_files (TrackerSparqlConnection *connection,
gint search_offset,
gint search_limit,
gboolean use_or_operator,
- gboolean details)
+ gboolean details)
{
gchar *fts;
gchar *query;
@@ -570,8 +570,8 @@ get_image_files (TrackerSparqlConnection *connection,
gboolean show_all,
gint search_offset,
gint search_limit,
- gboolean use_or_operator,
- gboolean details)
+ gboolean use_or_operator,
+ gboolean details)
{
gchar *fts;
gchar *query;
@@ -623,7 +623,7 @@ get_music_files (TrackerSparqlConnection *connection,
gint search_offset,
gint search_limit,
gboolean use_or_operator,
- gboolean details)
+ gboolean details)
{
gchar *fts;
gchar *query;
@@ -732,15 +732,14 @@ get_music_artists (TrackerSparqlConnection *connection,
g_print ("%s:\n", _("Artists"));
while (tracker_sparql_cursor_next (cursor, NULL, NULL)) {
- if (details) {
- g_print (" '%s' (%s)\n",
- tracker_sparql_cursor_get_string (cursor, 1, NULL),
- tracker_sparql_cursor_get_string (cursor, 0, NULL));
- } else {
- g_print (" '%s'\n",
- tracker_sparql_cursor_get_string (cursor, 1, NULL));
- }
-
+ if (details) {
+ g_print (" '%s' (%s)\n",
+ tracker_sparql_cursor_get_string (cursor, 1, NULL),
+ tracker_sparql_cursor_get_string (cursor, 0, NULL));
+ } else {
+ g_print (" '%s'\n",
+ tracker_sparql_cursor_get_string (cursor, 1, NULL));
+ }
count++;
}
@@ -818,15 +817,14 @@ get_music_albums (TrackerSparqlConnection *connection,
g_print ("%s:\n", _("Albums"));
while (tracker_sparql_cursor_next (cursor, NULL, NULL)) {
- if (details) {
- g_print (" '%s' (%s)\n",
- tracker_sparql_cursor_get_string (cursor, 1, NULL),
- tracker_sparql_cursor_get_string (cursor, 0, NULL));
- } else {
- g_print (" '%s'\n",
- tracker_sparql_cursor_get_string (cursor, 1, NULL));
- }
-
+ if (details) {
+ g_print (" '%s' (%s)\n",
+ tracker_sparql_cursor_get_string (cursor, 1, NULL),
+ tracker_sparql_cursor_get_string (cursor, 0, NULL));
+ } else {
+ g_print (" '%s'\n",
+ tracker_sparql_cursor_get_string (cursor, 1, NULL));
+ }
count++;
}
@@ -928,8 +926,8 @@ get_files (TrackerSparqlConnection *connection,
gboolean show_all,
gint search_offset,
gint search_limit,
- gboolean use_or_operator,
- gboolean details)
+ gboolean use_or_operator,
+ gboolean details)
{
gchar *fts;
gchar *query;
@@ -980,8 +978,8 @@ get_folders (TrackerSparqlConnection *connection,
gboolean show_all,
gint search_offset,
gint search_limit,
- gboolean use_or_operator,
- gboolean details)
+ gboolean use_or_operator,
+ gboolean details)
{
gchar *fts;
gchar *query;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]