summaryrefslogtreecommitdiff
path: root/thunarx
diff options
context:
space:
mode:
authorNick Schermer <nick@xfce.org>2012-11-14 21:26:59 +0100
committerNick Schermer <nick@xfce.org>2012-11-21 20:58:40 +0100
commit110141926088cc4007cce26fd17352b1b9b3b348 (patch)
treec72161900faddf4837d22dd36547ba7e8c1263a8 /thunarx
parentf407a9e6c83237ed471d32d49597d4a4c15c1ad1 (diff)
downloadthunar-110141926088cc4007cce26fd17352b1b9b3b348.tar.gz
Load content types on-demand.
This saves a lot of search and reading file content when loading large folder. Still in experimental stage.
Diffstat (limited to 'thunarx')
-rw-r--r--thunarx/thunarx-file-info.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/thunarx/thunarx-file-info.h b/thunarx/thunarx-file-info.h
index c8e305fb..304089ac 100644
--- a/thunarx/thunarx-file-info.h
+++ b/thunarx/thunarx-file-info.h
@@ -38,15 +38,22 @@ G_BEGIN_DECLS;
**/
#define THUNARX_FILE_INFO_NAMESPACE \
"access::*," \
- "id::*," \
- "mountable::*," \
+ "id::filesystem," \
+ "mountable::can-mount,standard::target-uri," \
"preview::*," \
- "standard::*," \
+ "standard::type,standard::is-hidden,standard::is-backup," \
+ "standard::is-symlink,standard::name,standard::display-name," \
+ "standard::size,standard::symlink-target," \
"time::*," \
"trash::*," \
- "unix::*," \
+ "unix::gid,unix::uid,unix::mode," \
"metadata::emblems"
+#define THUNARX_FILE_INFO_MIME_NAMESPACE \
+ "standard::content-type"
+
+
+
/**
* Filesystem information namespaces available in the #GFileInfo
* returned by thunarx_file_info_get_filesystem_info().