mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user