fileinfo: Add G_FILE_ATTRIBUTE_FILESYSTEM_REMOTE attribute

Add filesystem attribute to detect remote filesystems in order to
replace hardcoded filesystem types in GtkFileSystem. Set this attribute
also for GLocalFile appropriately.

Bump version to 2.49.3, so that early adopters of new API have a version
number to target.
This commit is contained in:
Ondrej Holy
2016-06-22 14:03:57 +02:00
parent f4b5dc30a7
commit e57355b055
4 changed files with 16 additions and 1 deletions

View File

@@ -1113,6 +1113,11 @@ g_local_file_query_filesystem_info (GFile *file,
#endif /* G_OS_WIN32 */
}
if (g_file_attribute_matcher_matches (attribute_matcher,
G_FILE_ATTRIBUTE_FILESYSTEM_REMOTE))
g_file_info_set_attribute_boolean (info, G_FILE_ATTRIBUTE_FILESYSTEM_REMOTE,
g_local_file_is_remote (local->filename));
g_file_attribute_matcher_unref (attribute_matcher);
return info;