tracker r2349 - in trunk: . src/trackerd



Author: mr
Date: Thu Oct  9 14:37:43 2008
New Revision: 2349
URL: http://svn.gnome.org/viewvc/tracker?rev=2349&view=rev

Log:
	* src/trackerd/tracker-monitor.c: (libinotify_monitor_directory):
	Removed the if is_directory check on EVERY file monitor we add
	since we know we only monitor directories.


Modified:
   trunk/ChangeLog
   trunk/src/trackerd/tracker-monitor.c

Modified: trunk/src/trackerd/tracker-monitor.c
==============================================================================
--- trunk/src/trackerd/tracker-monitor.c	(original)
+++ trunk/src/trackerd/tracker-monitor.c	Thu Oct  9 14:37:43 2008
@@ -1361,18 +1361,13 @@
 	gchar	      *path;
 	guint32	       mask;
 	unsigned long  flags;
-	gboolean       is_directory;
 
-	is_directory = TRUE;
-	flags = 0;
-	mask = IN_ALL_EVENTS;
+	flags  = 0;
+	flags &= ~IN_FLAG_FILE_BASED;
+	mask   =  IN_ALL_EVENTS;
 
 	/* For files */
-	if (is_directory) {
-		flags &= ~IN_FLAG_FILE_BASED;
-	} else {
-		flags |= IN_FLAG_FILE_BASED;
-	}
+	/* flags |= IN_FLAG_FILE_BASED; */
 
 	path = g_file_get_path (file);
 	handle = inotify_monitor_add (path,



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