[tracker/writeback-refactor-rebase: 36/43] libtracker-miner: Rename and change to boolean return of a GEqualFunc



commit 74a20cbec97e14cbc1e3d6207c6f6e30ef6e8cd2
Author: Philip Van Hoof <philip codeminded be>
Date:   Thu Jul 21 15:21:31 2011 +0200

    libtracker-miner: Rename and change to boolean return of a GEqualFunc

 src/libtracker-miner/tracker-miner-fs.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index 2ec823f..e6ef882 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -3493,9 +3493,9 @@ moved_files_equal (gconstpointer a,
 	return g_file_equal (data->file, file);
 }
 
-static gint
-compare_writeback_files (gconstpointer a,
-                         gconstpointer b)
+static gboolean
+writeback_files_equal (gconstpointer a,
+                       gconstpointer b)
 {
 	const ItemWritebackData *data = a;
 	GFile *file = G_FILE (b);
@@ -3584,7 +3584,7 @@ check_item_queues (TrackerMinerFS *fs,
 	case QUEUE_WRITEBACK:
 		/* No consecutive writebacks for the same file */
 		if (tracker_priority_queue_find (fs->priv->items_writeback, NULL,
-		                                 (GEqualFunc) compare_writeback_files, file)) {
+		                                 writeback_files_equal, file)) {
 			g_debug ("  Found previous unhandled WRITEBACK event");
 			return FALSE;
 		}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]