[PATCH] fix directory search order to be depth-first again



this matches the pre-glib implementation, and is way more natural.
---
 src/filemanager/find.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/filemanager/find.c b/src/filemanager/find.c
index e8719c9..2f5db3f 100644
--- a/src/filemanager/find.c
+++ b/src/filemanager/find.c
@@ -871,7 +871,7 @@ push_directory (vfs_path_t * dir)
 static inline vfs_path_t *
 pop_directory (void)
 {
-    return (vfs_path_t *) g_queue_pop_tail (&dir_queue);
+    return (vfs_path_t *) g_queue_pop_head (&dir_queue);
 }
 
 /* --------------------------------------------------------------------------------------------- */
-- 
2.8.3.1.g1cc7b6a



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