From 4263a38c529e39621c2148b32e7c4ed51e6f217a Mon Sep 17 00:00:00 2001 From: Maciej Stachowiak Date: Wed, 26 Jul 2000 04:11:36 +0000 Subject: I think I fixed 1693 and 1766 but I can't test them cause medusa searching is broken right now. * libnautilus-extensions/nautilus-directory.h, libnautilus-extensions/nautilus-directory.c (nautilus_directory_is_search_directory): New call to determine if a directory is a virtual search directory. * libnautilus-extensions/nautilus-file.h, libnautilus-extensions/nautilus-file.c: (nautilus_file_compare_by_real_name, nautilus_file_compare_by_real_directory, nautilus_file_compare_for_sort_internal): Added ability to sort by directory; made name sorting work right for search results. (nautilus_file_is_search_result, nautilus_file_get_real_name, nautilus_file_get_real_directory): New functions to get useful info about search results. (nautilus_file_get_string_attribute): Add real_name and real_directory attributes. * src/file-manager/fm-search-list-view.c: Use real_name and real_directory attributes for name and directory. (sort_criterion_from_column): sort properly by directory. --- libnautilus-private/nautilus-directory.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libnautilus-private/nautilus-directory.h') diff --git a/libnautilus-private/nautilus-directory.h b/libnautilus-private/nautilus-directory.h index 6f25b0490..dcb059160 100644 --- a/libnautilus-private/nautilus-directory.h +++ b/libnautilus-private/nautilus-directory.h @@ -161,6 +161,9 @@ gboolean nautilus_directory_metadata_loaded (NautilusDirectory /* Return true if the directory is local. */ gboolean nautilus_directory_is_local (NautilusDirectory *directory); +gboolean nautilus_directory_is_search_directory (NautilusDirectory *directory); + + typedef struct NautilusDirectoryDetails NautilusDirectoryDetails; struct NautilusDirectory -- cgit v1.2.1