[tracker/wip/miner-fs-refactor: 4/51] libtracker-miner: indentation fixes



commit 342984703da7956dee7bed1c57c3284174d2abc7
Author: Aleksander Morgado <aleksander lanedo com>
Date:   Tue Aug 2 17:55:14 2011 +0200

    libtracker-miner: indentation fixes

 src/libtracker-miner/tracker-indexing-tree.c |   50 ++++++++++++------------
 src/libtracker-miner/tracker-indexing-tree.h |   24 ++++++------
 src/libtracker-miner/tracker-monitor.c       |   52 +++++++++++++-------------
 3 files changed, 63 insertions(+), 63 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-indexing-tree.c b/src/libtracker-miner/tracker-indexing-tree.c
index 240cdbb..a372169 100644
--- a/src/libtracker-miner/tracker-indexing-tree.c
+++ b/src/libtracker-miner/tracker-indexing-tree.c
@@ -56,7 +56,7 @@ struct _TrackerIndexingTreePrivate
 
 static NodeData *
 node_data_new (GFile *file,
-	       guint  flags)
+               guint  flags)
 {
 	NodeData *data;
 
@@ -77,7 +77,7 @@ node_data_free (NodeData *data)
 
 static PatternData *
 pattern_data_new (const gchar *glob_string,
-		  guint        type)
+                  guint        type)
 {
 	PatternData *data;
 
@@ -108,11 +108,11 @@ tracker_indexing_tree_finalize (GObject *object)
 	g_list_free (priv->filter_patterns);
 
 	g_node_traverse (priv->config_tree,
-			 G_IN_ORDER,
-			 G_TRAVERSE_ALL,
-			 -1,
-			 (GNodeTraverseFunc) node_data_free,
-			 NULL);
+	                 G_IN_ORDER,
+	                 G_TRAVERSE_ALL,
+	                 -1,
+	                 (GNodeTraverseFunc) node_data_free,
+	                 NULL);
 	g_node_destroy (priv->config_tree);
 
 	G_OBJECT_CLASS (tracker_indexing_tree_parent_class)->finalize (object);
@@ -126,7 +126,7 @@ tracker_indexing_tree_class_init (TrackerIndexingTreeClass *klass)
 	object_class->finalize = tracker_indexing_tree_finalize;
 
 	g_type_class_add_private (object_class,
-				  sizeof (TrackerIndexingTreePrivate));
+	                          sizeof (TrackerIndexingTreePrivate));
 }
 
 static void
@@ -137,8 +137,8 @@ tracker_indexing_tree_init (TrackerIndexingTree *tree)
 	GFile *root;
 
 	priv = tree->priv = G_TYPE_INSTANCE_GET_PRIVATE (tree,
-							 TRACKER_TYPE_INDEXING_TREE,
-							 TrackerIndexingTreePrivate);
+	                                                 TRACKER_TYPE_INDEXING_TREE,
+	                                                 TrackerIndexingTreePrivate);
 	/* Add a shallow root node */
 	root = g_file_new_for_uri ("file:///");
 	data = node_data_new (root, 0);
@@ -237,7 +237,7 @@ tracker_indexing_tree_add (TrackerIndexingTree   *tree,
 
 	priv = tree->priv;
 	node = find_directory_node (priv->config_tree, directory,
-				    (GEqualFunc) g_file_equal);
+	                            (GEqualFunc) g_file_equal);
 
 	if (node) {
 		/* Node already existed */
@@ -304,7 +304,7 @@ tracker_indexing_tree_remove (TrackerIndexingTree *tree,
 
 	/* Move children to parent */
 	g_node_children_foreach (node, G_TRAVERSE_ALL,
-				 check_reparent_node, parent);
+	                         check_reparent_node, parent);
 
 	node_data_free (node->data);
 	g_node_destroy (node);
@@ -321,7 +321,7 @@ tracker_indexing_tree_remove (TrackerIndexingTree *tree,
 void
 tracker_indexing_tree_add_filter (TrackerIndexingTree *tree,
                                   TrackerFilterType    filter,
-				  const gchar         *glob_string)
+                                  const gchar         *glob_string)
 {
 	TrackerIndexingTreePrivate *priv;
 	PatternData *data;
@@ -344,7 +344,7 @@ tracker_indexing_tree_add_filter (TrackerIndexingTree *tree,
  **/
 void
 tracker_indexing_tree_clear_filters (TrackerIndexingTree *tree,
-				     TrackerFilterType    type)
+                                     TrackerFilterType    type)
 {
 	TrackerIndexingTreePrivate *priv;
 	GList *filters;
@@ -363,7 +363,7 @@ tracker_indexing_tree_clear_filters (TrackerIndexingTree *tree,
 		if (data->type == type) {
 			pattern_data_free (data);
 			priv->filter_patterns = g_list_remove (priv->filter_patterns,
-							       cur);
+			                                       cur);
 		}
 	}
 }
@@ -380,8 +380,8 @@ tracker_indexing_tree_clear_filters (TrackerIndexingTree *tree,
  **/
 gboolean
 tracker_indexing_tree_file_matches_filter (TrackerIndexingTree *tree,
-					   TrackerFilterType    type,
-					   GFile               *file)
+                                           TrackerFilterType    type,
+                                           GFile               *file)
 {
 	TrackerIndexingTreePrivate *priv;
 	GList *filters;
@@ -430,7 +430,7 @@ parent_or_equals (GFile *file1,
  **/
 gboolean
 tracker_indexing_tree_file_is_indexable (TrackerIndexingTree *tree,
-					 GFile               *file)
+                                         GFile               *file)
 {
 	TrackerIndexingTreePrivate *priv;
 	TrackerFilterType filter;
@@ -444,8 +444,8 @@ tracker_indexing_tree_file_is_indexable (TrackerIndexingTree *tree,
 	priv = tree->priv;
 
 	file_type = g_file_query_file_type (file,
-					    G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS,
-					    NULL);
+	                                    G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS,
+	                                    NULL);
 
 	filter = (file_type == G_FILE_TYPE_DIRECTORY) ?
 		TRACKER_FILTER_DIRECTORY : TRACKER_FILTER_FILE;
@@ -484,9 +484,9 @@ tracker_indexing_tree_file_is_indexable (TrackerIndexingTree *tree,
  **/
 gboolean
 tracker_indexing_tree_parent_is_indexable (TrackerIndexingTree  *tree,
-					   GFile                *parent,
-					   GFile               **children,
-					   gint                  n_children)
+                                           GFile                *parent,
+                                           GFile               **children,
+                                           gint                  n_children)
 {
 	gint i = 0;
 
@@ -497,8 +497,8 @@ tracker_indexing_tree_parent_is_indexable (TrackerIndexingTree  *tree,
 	while (i < n_children &&
 	       children[i] != NULL) {
 		if (tracker_indexing_tree_file_matches_filter (tree,
-							       TRACKER_FILTER_PARENT_DIRECTORY,
-							       children[i])) {
+		                                               TRACKER_FILTER_PARENT_DIRECTORY,
+		                                               children[i])) {
 			return FALSE;
 		}
 	}
diff --git a/src/libtracker-miner/tracker-indexing-tree.h b/src/libtracker-miner/tracker-indexing-tree.h
index f0e2b1f..def7c57 100644
--- a/src/libtracker-miner/tracker-indexing-tree.h
+++ b/src/libtracker-miner/tracker-indexing-tree.h
@@ -57,26 +57,26 @@ GType                 tracker_indexing_tree_get_type (void) G_GNUC_CONST;
 TrackerIndexingTree * tracker_indexing_tree_new      (void);
 
 void      tracker_indexing_tree_add                  (TrackerIndexingTree   *tree,
-						      GFile                 *directory,
-						      TrackerDirectoryFlags  flags);
+                                                      GFile                 *directory,
+                                                      TrackerDirectoryFlags  flags);
 void      tracker_indexing_tree_remove               (TrackerIndexingTree   *tree,
-						      GFile                 *directory);
+                                                      GFile                 *directory);
 
 void      tracker_indexing_tree_add_filter           (TrackerIndexingTree  *tree,
-						      TrackerFilterType     type,
-						      const gchar          *glob_string);
+                                                      TrackerFilterType     type,
+                                                      const gchar          *glob_string);
 void      tracker_indexing_tree_clear_filters        (TrackerIndexingTree  *tree,
-						      TrackerFilterType     type);
+                                                      TrackerFilterType     type);
 gboolean  tracker_indexing_tree_file_matches_filter  (TrackerIndexingTree  *tree,
-						      TrackerFilterType     type,
-						      GFile                *file);
+                                                      TrackerFilterType     type,
+                                                      GFile                *file);
 
 gboolean  tracker_indexing_tree_file_is_indexable    (TrackerIndexingTree  *tree,
-						      GFile                *file);
+                                                      GFile                *file);
 gboolean  tracker_indexing_tree_parent_is_indexable  (TrackerIndexingTree  *tree,
-						      GFile                *parent,
-						      GFile               **children,
-						      gint                  n_children);
+                                                      GFile                *parent,
+                                                      GFile               **children,
+                                                      gint                  n_children);
 
 GFile *   tracker_indexing_tree_get_effective_parent (TrackerIndexingTree   *tree,
                                                       GFile                 *file,
diff --git a/src/libtracker-miner/tracker-monitor.c b/src/libtracker-miner/tracker-monitor.c
index 99d48ec..0719ded 100644
--- a/src/libtracker-miner/tracker-monitor.c
+++ b/src/libtracker-miner/tracker-monitor.c
@@ -701,38 +701,38 @@ emit_signal_for_event (TrackerMonitor *monitor,
 
 		if (monitor->priv->tree &&
 		    !tracker_indexing_tree_file_is_indexable (monitor->priv->tree,
-							      event_data->file)) {
+		                                              event_data->file)) {
 			g_debug ("Emitting ITEM_UPDATED for %s (%s) from "
-				 "a move event, source is not indexable",
-				 event_data->other_file_uri,
-				 event_data->is_directory ? "DIRECTORY" : "FILE");
+			         "a move event, source is not indexable",
+			         event_data->other_file_uri,
+			         event_data->is_directory ? "DIRECTORY" : "FILE");
 			g_signal_emit (monitor,
-				       signals[ITEM_UPDATED], 0,
-				       event_data->other_file,
-				       event_data->is_directory);
+			               signals[ITEM_UPDATED], 0,
+			               event_data->other_file,
+			               event_data->is_directory);
 		} else if (monitor->priv->tree &&
-			   !tracker_indexing_tree_file_is_indexable (monitor->priv->tree,
-								     event_data->other_file)) {
+		           !tracker_indexing_tree_file_is_indexable (monitor->priv->tree,
+		                                                     event_data->other_file)) {
 			g_debug ("Emitting ITEM_DELETED for %s (%s) from "
-				 "a move event, destination is not indexable",
-				 event_data->file_uri,
-				 event_data->is_directory ? "DIRECTORY" : "FILE");
+			         "a move event, destination is not indexable",
+			         event_data->file_uri,
+			         event_data->is_directory ? "DIRECTORY" : "FILE");
 			g_signal_emit (monitor,
-				       signals[ITEM_DELETED], 0,
-				       event_data->file,
-				       event_data->is_directory);
+			               signals[ITEM_DELETED], 0,
+			               event_data->file,
+			               event_data->is_directory);
 		} else  {
 			g_debug ("Emitting ITEM_MOVED for (%s) '%s'->'%s'",
-				 event_data->is_directory ? "DIRECTORY" : "FILE",
-				 event_data->file_uri,
-				 event_data->other_file_uri);
+			         event_data->is_directory ? "DIRECTORY" : "FILE",
+			         event_data->file_uri,
+			         event_data->other_file_uri);
 
 			g_signal_emit (monitor,
-				       signals[ITEM_MOVED], 0,
-				       event_data->file,
-				       event_data->other_file,
-				       event_data->is_directory,
-				       TRUE);
+			               signals[ITEM_MOVED], 0,
+			               event_data->file,
+			               event_data->other_file,
+			               event_data->is_directory,
+			               TRUE);
 		}
 
 		break;
@@ -1210,7 +1210,7 @@ monitor_event_cb (GFileMonitor      *file_monitor,
 		/* Avoid non-indexable-files */
 		if (monitor->priv->tree &&
 		    !tracker_indexing_tree_file_is_indexable (monitor->priv->tree,
-							      file)) {
+		                                              file)) {
 			g_free (file_uri);
 			return;
 		}
@@ -1396,7 +1396,7 @@ tracker_monitor_get_indexing_tree (TrackerMonitor *monitor)
 
 void
 tracker_monitor_set_indexing_tree (TrackerMonitor      *monitor,
-				   TrackerIndexingTree *tree)
+                                   TrackerIndexingTree *tree)
 {
 	g_return_if_fail (TRACKER_IS_MONITOR (monitor));
 	g_return_if_fail (!tree || TRACKER_IS_INDEXING_TREE (tree));
@@ -1566,7 +1566,7 @@ tracker_monitor_remove_recursively (TrackerMonitor *monitor,
 
 	uri = g_file_get_uri (file);
 	g_debug ("Removed all monitors recursively for path:'%s', total monitors:%d",
-		 uri, g_hash_table_size (monitor->priv->monitors));
+	         uri, g_hash_table_size (monitor->priv->monitors));
 	g_free (uri);
 
 	if (items_removed > 0) {



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