diff options
author | monsta <[email protected]> | 2017-04-18 11:50:02 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2017-04-18 11:50:02 +0300 |
commit | 21668de5806ce71ceecd7470b717412bfa3bd01c (patch) | |
tree | b575285b32d2db44b4182a902c9fe67998d48639 /libcaja-private/caja-file.c | |
parent | ed842baac4f438a90bd6214020d2363241171545 (diff) | |
download | caja-21668de5806ce71ceecd7470b717412bfa3bd01c.tar.bz2 caja-21668de5806ce71ceecd7470b717412bfa3bd01c.tar.xz |
don't parse .hidden files manually - GIO does it since 2.36
taken from:
https://git.gnome.org/browse/nautilus/commit/?id=ace6d2c2170028148785f3fa87eedf883f20f1dd
GIO commit for reference:
https://git.gnome.org/browse/glib/commit/?id=510ba9b4efe1813e24c6dfa7405c3547bf9efdd7
Diffstat (limited to 'libcaja-private/caja-file.c')
-rw-r--r-- | libcaja-private/caja-file.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/libcaja-private/caja-file.c b/libcaja-private/caja-file.c index 85f7aa2f..6e6603b2 100644 --- a/libcaja-private/caja-file.c +++ b/libcaja-private/caja-file.c @@ -3389,15 +3389,6 @@ caja_file_is_hidden_file (CajaFile *file) return file->details->is_hidden; } -static gboolean -is_file_hidden (CajaFile *file) -{ - return file->details->directory->details->hidden_file_hash != NULL && - g_hash_table_lookup (file->details->directory->details->hidden_file_hash, - eel_ref_str_peek (file->details->name)) != NULL; - -} - /** * caja_file_should_show: * @file: the file to check. @@ -3417,7 +3408,7 @@ caja_file_should_show (CajaFile *file, if (caja_file_is_in_trash (file)) { return TRUE; } else { - return (show_hidden || (!caja_file_is_hidden_file (file) && !is_file_hidden (file))) && + return (show_hidden || !caja_file_is_hidden_file (file)) && (show_foreign || !(caja_file_is_in_desktop (file) && caja_file_is_foreign_link (file))); } } |