2007-12-20 Alexander Larsson <alexl@redhat.com>
+ * gfile.c:
+ * gfileattribute.c:
+ * gfileinfo.c:
+ * gfileinfo.h:
+ * gfilenamecompleter.c:
+ * glocalfile.c:
+ * glocalfileinfo.c:
+ * gpollfilemonitor.c:
+ File attribute renames:
+ std:: -> standard::
+ fs:: -> filesystem::
+ id::fs -> id::filesystem
+
+2007-12-20 Alexander Larsson <alexl@redhat.com>
+
* gfile.[ch]:
* gdrive.[ch]:
* gmount.[ch]:
* should be gathered. It is not an error if its not possible to read a particular
* requested attribute from a file, it just won't be set. @attribute should
* be a comma-separated list of attribute or attribute wildcards. The wildcard "*"
- * means all attributes, and a wildcard like "std:*" means all attributes in the std
- * namespace. An example attribute query be "std:*,owner:user".
- * The standard attributes are availible as defines, like #G_FILE_ATTRIBUTE_STD_NAME.
+ * means all attributes, and a wildcard like "standard::*" means all attributes in the standard
+ * namespace. An example attribute query be "standard::*,owner::user".
+ * The standard attributes are availible as defines, like #G_FILE_ATTRIBUTE_STANDARD_NAME.
*
* If @cancellable is not %NULL, then the operation can be cancelled by
* triggering the cancellable object from another thread. If the operation
* should be gathered. It is not an error if its not possible to read a particular
* requested attribute from a file, it just won't be set. @attribute should
* be a comma-separated list of attribute or attribute wildcards. The wildcard "*"
- * means all attributes, and a wildcard like "std:*" means all attributes in the std
- * namespace. An example attribute query be "std:*,owner:user".
- * The standard attributes are availible as defines, like #G_FILE_ATTRIBUTE_STD_NAME.
+ * means all attributes, and a wildcard like "standard::*" means all attributes in the standard
+ * namespace. An example attribute query be "standard::*,owner::user".
+ * The standard attributes are availible as defines, like #G_FILE_ATTRIBUTE_STANDARD_NAME.
*
* If @cancellable is not %NULL, then the operation can be cancelled by
* triggering the cancellable object from another thread. If the operation
* be a comma-separated list of attribute or attribute wildcards. The wildcard "*"
* means all attributes, and a wildcard like "fs:*" means all attributes in the fs
* namespace. The standard namespace for filesystem attributes is "fs".
- * Common attributes of interest are #G_FILE_ATTRIBUTE_FS_SIZE
- * (the total size of the filesystem in bytes), #G_FILE_ATTRIBUTE_FS_FREE (number of
- * bytes availible), and #G_FILE_ATTRIBUTE_FS_TYPE (type of the filesystem).
+ * Common attributes of interest are #G_FILE_ATTRIBUTE_FILESYSTEM_SIZE
+ * (the total size of the filesystem in bytes), #G_FILE_ATTRIBUTE_FILESYSTEM_FREE (number of
+ * bytes availible), and #G_FILE_ATTRIBUTE_FILESYSTEM_TYPE (type of the filesystem).
*
* If @cancellable is not %NULL, then the operation can be cancelled by
* triggering the cancellable object from another thread. If the operation
/* Don't overwrite if the destination is a directory */
- info = g_file_query_info (destination, G_FILE_ATTRIBUTE_STD_TYPE,
+ info = g_file_query_info (destination, G_FILE_ATTRIBUTE_STANDARD_TYPE,
G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS,
cancellable, &my_error);
if (info != NULL)
g_error_free (my_error);
my_error = NULL;
- info = g_file_query_info (destination, G_FILE_ATTRIBUTE_STD_TYPE,
+ info = g_file_query_info (destination, G_FILE_ATTRIBUTE_STANDARD_TYPE,
G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS,
cancellable, &my_error);
if (info != NULL)
total_size = 0;
info = g_file_input_stream_query_info (G_FILE_INPUT_STREAM (in),
- G_FILE_ATTRIBUTE_STD_SIZE,
+ G_FILE_ATTRIBUTE_STANDARD_SIZE,
cancellable, NULL);
if (info)
{
if (flags & G_FILE_COPY_NOFOLLOW_SYMLINKS)
{
info = g_file_query_info (source,
- G_FILE_ATTRIBUTE_STD_TYPE "," G_FILE_ATTRIBUTE_STD_SYMLINK_TARGET,
+ G_FILE_ATTRIBUTE_STANDARD_TYPE "," G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET,
G_FILE_QUERY_INFO_NOFOLLOW_SYMLINKS,
cancellable,
error);
* filesystem if possible and the @file is renamed to this.
*
* If you want to implement a rename operation in the user interface the edit name
- * (#G_FILE_ATTRIBUTE_STD_EDIT_NAME) should be used as the initial value in the rename
+ * (#G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME) should be used as the initial value in the rename
* widget, and then the result after editing should be passed to g_file_set_display_name().
*
* On success the resulting converted filename is returned.
* Keys are strings that contain a key namespace and a key name, separated
* by a colon, e.g. "namespace:keyname". Namespaces are included to sort
* key-value pairs by namespaces for relevance. Keys can be retrived
- * using wildcards, e.g. "std:*" will return all of the keys in the
- * "std" namespace.
+ * using wildcards, e.g. "standard::*" will return all of the keys in the
+ * "standard" namespace.
*
* Values are stored within the list in #GFileAttributeValue structures.
* Values can store different types, listed in the enum #GFileAttributeType.
* <row><entry>Namspace</entry><entry>Description</entry></row>
* </thead>
* <tbody>
- * <row><entry>"std"</entry><entry>The "Standard" namespace. General file
+ * <row><entry>"standard"</entry><entry>The "Standard" namespace. General file
* information that any application may need should be put in this namespace.
* Examples include the file's name, type, and size.</entry></row>
* <row><entry>"etag"</entry><entry>The <link linkend="gfile-etag">"Entity Tag"</link>
* information about file thumbnails and their location within the file system. Exaples of
* keys in this namespace include "path" to get the location of a thumbnail, and "failed"
* to check if thumbnailing of the file failed.</entry></row>
- * <row><entry>"fs"</entry><entry>The "Filesystem" namespace. Gets information
+ * <row><entry>"filesystem"</entry><entry>The "Filesystem" namespace. Gets information
* about the file system where a file is located, such as its type, how much
* space is left available, and the overall size of the file system.</entry></row>
* <row><entry>"gvfs"</entry><entry>The "GVFS" namespace. Keys in this namespace
* <tgroup cols='3' align='left'><thead>
* <row><entry>Enum Value</entry><entry>Namespace:Key</entry><entry>Value Type</entry></row>
* </thead><tbody>
- * <row><entry>%G_FILE_ATTRIBUTE_STD_TYPE</entry><entry>std::type</entry><entry>uint32 (#GFileType)</entry></row>
- * <row><entry>%G_FILE_ATTRIBUTE_STD_IS_HIDDEN</entry><entry>std::is-hidden</entry><entry>boolean</entry></row>
- * <row><entry>%G_FILE_ATTRIBUTE_STD_IS_BACKUP</entry><entry>std::is-backup</entry><entry>boolean</entry></row>
- * <row><entry>%G_FILE_ATTRIBUTE_STD_IS_SYMLINK</entry><entry>std::is-symlink</entry><entry>boolean</entry></row>
- * <row><entry>%G_FILE_ATTRIBUTE_STD_IS_VIRTUAL</entry><entry>std::is-virtual</entry><entry>boolean</entry></row>
- * <row><entry>%G_FILE_ATTRIBUTE_STD_NAME</entry><entry>std::name</entry><entry>byte string</entry></row>
- * <row><entry>%G_FILE_ATTRIBUTE_STD_DISPLAY_NAME</entry><entry>std::display-name</entry><entry>string</entry></row>
- * <row><entry>%G_FILE_ATTRIBUTE_STD_EDIT_NAME</entry><entry>std::edit-name</entry><entry>string</entry></row>
- * <row><entry>%G_FILE_ATTRIBUTE_STD_ICON</entry><entry>std::icon</entry><entry>object (#GIcon)</entry></row>
- * <row><entry>%G_FILE_ATTRIBUTE_STD_CONTENT_TYPE</entry><entry>std::content-type</entry><entry>string</entry></row>
- * <row><entry>%G_FILE_ATTRIBUTE_STD_FAST_CONTENT_TYPE</entry><entry>std::fast-content-type</entry><entry>string</entry></row>
- * <row><entry>%G_FILE_ATTRIBUTE_STD_SIZE</entry><entry>std::size</entry><entry>uint64</entry></row>
- * <row><entry>%G_FILE_ATTRIBUTE_STD_SYMLINK_TARGET</entry><entry>std::symlink-target</entry><entry>byte string</entry></row>
- * <row><entry>%G_FILE_ATTRIBUTE_STD_TARGET_URI</entry><entry>std::target-uri</entry><entry>string</entry></row>
- * <row><entry>%G_FILE_ATTRIBUTE_STD_SORT_ORDER</entry><entry>std::sort-order</entry><entry>int32</entry></row>
+ * <row><entry>%G_FILE_ATTRIBUTE_STANDARD_TYPE</entry><entry>standard::type</entry><entry>uint32 (#GFileType)</entry></row>
+ * <row><entry>%G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN</entry><entry>standard::is-hidden</entry><entry>boolean</entry></row>
+ * <row><entry>%G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP</entry><entry>standard::is-backup</entry><entry>boolean</entry></row>
+ * <row><entry>%G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK</entry><entry>standard::is-symlink</entry><entry>boolean</entry></row>
+ * <row><entry>%G_FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL</entry><entry>standard::is-virtual</entry><entry>boolean</entry></row>
+ * <row><entry>%G_FILE_ATTRIBUTE_STANDARD_NAME</entry><entry>standard::name</entry><entry>byte string</entry></row>
+ * <row><entry>%G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME</entry><entry>standard::display-name</entry><entry>string</entry></row>
+ * <row><entry>%G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME</entry><entry>standard::edit-name</entry><entry>string</entry></row>
+ * <row><entry>%G_FILE_ATTRIBUTE_STANDARD_ICON</entry><entry>standard::icon</entry><entry>object (#GIcon)</entry></row>
+ * <row><entry>%G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE</entry><entry>standard::content-type</entry><entry>string</entry></row>
+ * <row><entry>%G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE</entry><entry>standard::fast-content-type</entry><entry>string</entry></row>
+ * <row><entry>%G_FILE_ATTRIBUTE_STANDARD_SIZE</entry><entry>standard::size</entry><entry>uint64</entry></row>
+ * <row><entry>%G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET</entry><entry>standard::symlink-target</entry><entry>byte string</entry></row>
+ * <row><entry>%G_FILE_ATTRIBUTE_STANDARD_TARGET_URI</entry><entry>standard::target-uri</entry><entry>string</entry></row>
+ * <row><entry>%G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER</entry><entry>standard::sort-order</entry><entry>int32</entry></row>
* <row><entry>%G_FILE_ATTRIBUTE_ETAG_VALUE</entry><entry>etag::value</entry><entry>string</entry></row>
* <row><entry>%G_FILE_ATTRIBUTE_ID_FILE</entry><entry>id::file</entry><entry>string</entry></row>
- * <row><entry>%G_FILE_ATTRIBUTE_ID_FS</entry><entry>id::fs</entry><entry>string</entry></row>
+ * <row><entry>%G_FILE_ATTRIBUTE_ID_FILESYSTEM</entry><entry>id::filesystem</entry><entry>string</entry></row>
* <row><entry>%G_FILE_ATTRIBUTE_ACCESS_CAN_READ</entry><entry>access::can-read</entry><entry>boolean</entry></row>
* <row><entry>%G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE</entry><entry>access::can-write</entry><entry>boolean</entry></row>
* <row><entry>%G_FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE</entry><entry>access::can-execute</entry><entry>boolean</entry></row>
* <row><entry>%G_FILE_ATTRIBUTE_OWNER_GROUP</entry><entry>owner::group</entry><entry>string</entry></row>
* <row><entry>%G_FILE_ATTRIBUTE_THUMBNAIL_PATH</entry><entry>thumbnail::path</entry><entry>bytestring</entry></row>
* <row><entry>%G_FILE_ATTRIBUTE_THUMBNAILING_FAILED</entry><entry>thumbnail::failed</entry><entry>boolean</entry></row>
- * <row><entry>%G_FILE_ATTRIBUTE_FS_SIZE</entry><entry>fs::size</entry><entry>uint64</entry></row>
- * <row><entry>%G_FILE_ATTRIBUTE_FS_FREE</entry><entry>fs::free</entry><entry>uint64</entry></row>
- * <row><entry>%G_FILE_ATTRIBUTE_FS_TYPE</entry><entry>fs::type</entry><entry>string</entry></row>
- * <row><entry>%G_FILE_ATTRIBUTE_FS_READONLY</entry><entry>fs::readonly</entry><entry>boolean</entry></row>
+ * <row><entry>%G_FILE_ATTRIBUTE_FILESYSTEM_SIZE</entry><entry>filesystem::size</entry><entry>uint64</entry></row>
+ * <row><entry>%G_FILE_ATTRIBUTE_FILESYSTEM_FREE</entry><entry>filesystem::free</entry><entry>uint64</entry></row>
+ * <row><entry>%G_FILE_ATTRIBUTE_FILESYSTEM_TYPE</entry><entry>filesystem::type</entry><entry>string</entry></row>
+ * <row><entry>%G_FILE_ATTRIBUTE_FILESYSTEM_READONLY</entry><entry>filesystem::readonly</entry><entry>boolean</entry></row>
* <row><entry>%G_FILE_ATTRIBUTE_GVFS_BACKEND</entry><entry>gvfs::backend</entry><entry>string</entry></row>
* </tbody></tgroup></table></para>
*
g_return_val_if_fail (G_IS_FILE_INFO (info), G_FILE_TYPE_UNKNOWN);
if (attr == 0)
- attr = lookup_attribute (G_FILE_ATTRIBUTE_STD_TYPE);
+ attr = lookup_attribute (G_FILE_ATTRIBUTE_STANDARD_TYPE);
value = g_file_info_find_value (info, attr);
return (GFileType)_g_file_attribute_value_get_uint32 (value);
g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE);
if (attr == 0)
- attr = lookup_attribute (G_FILE_ATTRIBUTE_STD_IS_HIDDEN);
+ attr = lookup_attribute (G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN);
value = g_file_info_find_value (info, attr);
return (GFileType)_g_file_attribute_value_get_boolean (value);
g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE);
if (attr == 0)
- attr = lookup_attribute (G_FILE_ATTRIBUTE_STD_IS_BACKUP);
+ attr = lookup_attribute (G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP);
value = g_file_info_find_value (info, attr);
return (GFileType)_g_file_attribute_value_get_boolean (value);
g_return_val_if_fail (G_IS_FILE_INFO (info), FALSE);
if (attr == 0)
- attr = lookup_attribute (G_FILE_ATTRIBUTE_STD_IS_SYMLINK);
+ attr = lookup_attribute (G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK);
value = g_file_info_find_value (info, attr);
return (GFileType)_g_file_attribute_value_get_boolean (value);
g_return_val_if_fail (G_IS_FILE_INFO (info), NULL);
if (attr == 0)
- attr = lookup_attribute (G_FILE_ATTRIBUTE_STD_NAME);
+ attr = lookup_attribute (G_FILE_ATTRIBUTE_STANDARD_NAME);
value = g_file_info_find_value (info, attr);
return _g_file_attribute_value_get_byte_string (value);
g_return_val_if_fail (G_IS_FILE_INFO (info), NULL);
if (attr == 0)
- attr = lookup_attribute (G_FILE_ATTRIBUTE_STD_DISPLAY_NAME);
+ attr = lookup_attribute (G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME);
value = g_file_info_find_value (info, attr);
return _g_file_attribute_value_get_string (value);
g_return_val_if_fail (G_IS_FILE_INFO (info), NULL);
if (attr == 0)
- attr = lookup_attribute (G_FILE_ATTRIBUTE_STD_EDIT_NAME);
+ attr = lookup_attribute (G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME);
value = g_file_info_find_value (info, attr);
return _g_file_attribute_value_get_string (value);
g_return_val_if_fail (G_IS_FILE_INFO (info), NULL);
if (attr == 0)
- attr = lookup_attribute (G_FILE_ATTRIBUTE_STD_ICON);
+ attr = lookup_attribute (G_FILE_ATTRIBUTE_STANDARD_ICON);
value = g_file_info_find_value (info, attr);
obj = _g_file_attribute_value_get_object (value);
g_return_val_if_fail (G_IS_FILE_INFO (info), NULL);
if (attr == 0)
- attr = lookup_attribute (G_FILE_ATTRIBUTE_STD_CONTENT_TYPE);
+ attr = lookup_attribute (G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE);
value = g_file_info_find_value (info, attr);
return _g_file_attribute_value_get_string (value);
g_return_val_if_fail (G_IS_FILE_INFO (info), (goffset) 0);
if (attr == 0)
- attr = lookup_attribute (G_FILE_ATTRIBUTE_STD_SIZE);
+ attr = lookup_attribute (G_FILE_ATTRIBUTE_STANDARD_SIZE);
value = g_file_info_find_value (info, attr);
return (goffset) _g_file_attribute_value_get_uint64 (value);
g_return_val_if_fail (G_IS_FILE_INFO (info), NULL);
if (attr == 0)
- attr = lookup_attribute (G_FILE_ATTRIBUTE_STD_SYMLINK_TARGET);
+ attr = lookup_attribute (G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET);
value = g_file_info_find_value (info, attr);
return _g_file_attribute_value_get_byte_string (value);
* @info: a #GFileInfo.
*
* Gets the value of the sort_order attribute from the #GFileInfo.
- * See %G_FILE_ATTRIBUTE_STD_SORT_ORDER.
+ * See %G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER.
*
- * Returns: a #gint32 containing the value of the "std:sort_order" attribute.
+ * Returns: a #gint32 containing the value of the "standard::sort_order" attribute.
**/
gint32
g_file_info_get_sort_order (GFileInfo *info)
g_return_val_if_fail (G_IS_FILE_INFO (info), 0);
if (attr == 0)
- attr = lookup_attribute (G_FILE_ATTRIBUTE_STD_SORT_ORDER);
+ attr = lookup_attribute (G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER);
value = g_file_info_find_value (info, attr);
return _g_file_attribute_value_get_int32 (value);
* @type: a #GFileType.
*
* Sets the file type in a #GFileInfo to @type.
- * See %G_FILE_ATTRIBUTE_STD_TYPE.
+ * See %G_FILE_ATTRIBUTE_STANDARD_TYPE.
**/
void
g_file_info_set_file_type (GFileInfo *info,
g_return_if_fail (G_IS_FILE_INFO (info));
if (attr == 0)
- attr = lookup_attribute (G_FILE_ATTRIBUTE_STD_TYPE);
+ attr = lookup_attribute (G_FILE_ATTRIBUTE_STANDARD_TYPE);
value = g_file_info_create_value (info, attr);
if (value)
* @is_hidden: a #gboolean.
*
* Sets the "is_hidden" attribute in a #GFileInfo according to @is_symlink.
- * See %G_FILE_ATTRIBUTE_STD_IS_HIDDEN.
+ * See %G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN.
**/
void
g_file_info_set_is_hidden (GFileInfo *info,
g_return_if_fail (G_IS_FILE_INFO (info));
if (attr == 0)
- attr = lookup_attribute (G_FILE_ATTRIBUTE_STD_IS_HIDDEN);
+ attr = lookup_attribute (G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN);
value = g_file_info_create_value (info, attr);
if (value)
* @is_symlink: a #gboolean.
*
* Sets the "is_symlink" attribute in a #GFileInfo according to @is_symlink.
- * See %G_FILE_ATTRIBUTE_STD_IS_SYMLINK.
+ * See %G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK.
**/
void
g_file_info_set_is_symlink (GFileInfo *info,
g_return_if_fail (G_IS_FILE_INFO (info));
if (attr == 0)
- attr = lookup_attribute (G_FILE_ATTRIBUTE_STD_IS_SYMLINK);
+ attr = lookup_attribute (G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK);
value = g_file_info_create_value (info, attr);
if (value)
* @name: a string containing a name.
*
* Sets the name attribute for the current #GFileInfo.
- * See %G_FILE_ATTRIBUTE_STD_NAME.
+ * See %G_FILE_ATTRIBUTE_STANDARD_NAME.
**/
void
g_file_info_set_name (GFileInfo *info,
g_return_if_fail (name != NULL);
if (attr == 0)
- attr = lookup_attribute (G_FILE_ATTRIBUTE_STD_NAME);
+ attr = lookup_attribute (G_FILE_ATTRIBUTE_STANDARD_NAME);
value = g_file_info_create_value (info, attr);
if (value)
* @display_name: a string containing a display name.
*
* Sets the display name for the current #GFileInfo.
- * See %G_FILE_ATTRIBUTE_STD_DISPLAY_NAME.
+ * See %G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME.
**/
void
g_file_info_set_display_name (GFileInfo *info,
g_return_if_fail (display_name != NULL);
if (attr == 0)
- attr = lookup_attribute (G_FILE_ATTRIBUTE_STD_DISPLAY_NAME);
+ attr = lookup_attribute (G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME);
value = g_file_info_create_value (info, attr);
if (value)
* @edit_name: a string containing an edit name.
*
* Sets the edit name for the current file.
- * See %G_FILE_ATTRIBUTE_STD_EDIT_NAME.
+ * See %G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME.
**/
void
g_file_info_set_edit_name (GFileInfo *info,
g_return_if_fail (edit_name != NULL);
if (attr == 0)
- attr = lookup_attribute (G_FILE_ATTRIBUTE_STD_EDIT_NAME);
+ attr = lookup_attribute (G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME);
value = g_file_info_create_value (info, attr);
if (value)
* @icon: a #GIcon.
*
* Sets the icon for a given #GFileInfo.
- * See %G_FILE_ATTRIBUTE_STD_ICON.
+ * See %G_FILE_ATTRIBUTE_STANDARD_ICON.
**/
void
g_file_info_set_icon (GFileInfo *info,
g_return_if_fail (G_IS_ICON (icon));
if (attr == 0)
- attr = lookup_attribute (G_FILE_ATTRIBUTE_STD_ICON);
+ attr = lookup_attribute (G_FILE_ATTRIBUTE_STANDARD_ICON);
value = g_file_info_create_value (info, attr);
if (value)
* @content_type: a content type. See #GContentType.
*
* Sets the content type attribute for a given #GFileInfo.
- * See %G_FILE_ATTRIBUTE_STD_CONTENT_TYPE.
+ * See %G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE.
**/
void
g_file_info_set_content_type (GFileInfo *info,
g_return_if_fail (content_type != NULL);
if (attr == 0)
- attr = lookup_attribute (G_FILE_ATTRIBUTE_STD_CONTENT_TYPE);
+ attr = lookup_attribute (G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE);
value = g_file_info_create_value (info, attr);
if (value)
* @info: a #GFileInfo.
* @size: a #goffset containing the file's size.
*
- * Sets the %G_FILE_ATTRIBUTE_STD_SIZE attribute in the file info
+ * Sets the %G_FILE_ATTRIBUTE_STANDARD_SIZE attribute in the file info
* to the given size.
**/
void
g_return_if_fail (G_IS_FILE_INFO (info));
if (attr == 0)
- attr = lookup_attribute (G_FILE_ATTRIBUTE_STD_SIZE);
+ attr = lookup_attribute (G_FILE_ATTRIBUTE_STANDARD_SIZE);
value = g_file_info_create_value (info, attr);
if (value)
* @info: a #GFileInfo.
* @symlink_target: a static string containing a path to a symlink target.
*
- * Sets the %G_FILE_ATTRIBUTE_STD_SYMLINK_TARGET attribute in the file info
+ * Sets the %G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET attribute in the file info
* to the given symlink target.
**/
void
g_return_if_fail (symlink_target != NULL);
if (attr == 0)
- attr = lookup_attribute (G_FILE_ATTRIBUTE_STD_SYMLINK_TARGET);
+ attr = lookup_attribute (G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET);
value = g_file_info_create_value (info, attr);
if (value)
* @sort_order: a sort order integer.
*
* Sets the sort order attribute in the file info structure. See
- * %G_FILE_ATTRIBUTE_STD_SORT_ORDER.
+ * %G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER.
**/
void
g_file_info_set_sort_order (GFileInfo *info,
g_return_if_fail (G_IS_FILE_INFO (info));
if (attr == 0)
- attr = lookup_attribute (G_FILE_ATTRIBUTE_STD_SORT_ORDER);
+ attr = lookup_attribute (G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER);
value = g_file_info_create_value (info, attr);
if (value)
*
* The @attribute string should be formatted with specific keys separated
* from namespaces with a double colon. Several "namespace::key" strings may be
- * concatenated with a single comma (e.g. "std::type,std::is-hidden").
+ * concatenated with a single comma (e.g. "standard::type,standard::is-hidden").
* The wildcard "*" may be used to match all keys and namespaces, or
* "namespace::*" will match all keys in a given namespace.
*
* <row><entry> Matcher String </entry><entry> Matches </entry></row></thead>
* <tbody>
* <row><entry>"*"</entry><entry>matches all attributes.</entry></row>
- * <row><entry>"std::is-hidden"</entry><entry>matches only the key is-hidden in the std namespace.</entry></row>
- * <row><entry>"std::type,unix::*"</entry><entry>matches the type key in the std namespace and all keys in the unix
- * namespace.</entry></row>
+ * <row><entry>"standard::is-hidden"</entry><entry>matches only the key is-hidden in the standard namespace.</entry></row>
+ * <row><entry>"standard::type,unix::*"</entry><entry>matches the type key in the standard namespace and
+ * all keys in the unix namespace.</entry></row>
* </tbody></tgroup>
* </table>
*
*
* Checks if the matcher will match all of the keys in a given namespace.
* This will always return %TRUE if a wildcard character is in use (e.g. if
- * matcher was created with "std::*" and @ns is "std", or if matcher was created
+ * matcher was created with "standard::*" and @ns is "standard", or if matcher was created
* using "*" and namespace is anything.)
*
* TODO: this is awkwardly worded.
/* Common Attributes: */
/**
- * G_FILE_ATTRIBUTE_STD_TYPE:
+ * G_FILE_ATTRIBUTE_STANDARD_TYPE:
*
- * A key in the "std" namespace for storing file types.
+ * A key in the "standard" namespace for storing file types.
* Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT32.
* The value for this key should contain a #GFileType.
**/
-#define G_FILE_ATTRIBUTE_STD_TYPE "std::type" /* uint32 (GFileType) */
+#define G_FILE_ATTRIBUTE_STANDARD_TYPE "standard::type" /* uint32 (GFileType) */
/**
- * G_FILE_ATTRIBUTE_STD_IS_HIDDEN:
+ * G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN:
*
- * A key in the "std" namespace for checking if a file is hidden.
+ * A key in the "standard" namespace for checking if a file is hidden.
* Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
**/
-#define G_FILE_ATTRIBUTE_STD_IS_HIDDEN "std::is-hidden" /* boolean */
+#define G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN "standard::is-hidden" /* boolean */
/**
- * G_FILE_ATTRIBUTE_STD_IS_BACKUP:
+ * G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP:
*
- * A key in the "std" namespace for checking if a file is a backup file.
+ * A key in the "standard" namespace for checking if a file is a backup file.
* Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
**/
-#define G_FILE_ATTRIBUTE_STD_IS_BACKUP "std::is-backup" /* boolean */
+#define G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP "standard::is-backup" /* boolean */
/**
- * G_FILE_ATTRIBUTE_STD_IS_SYMLINK:
+ * G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK:
*
- * A key in the "std" namespace for checking if the file is a symlink.
+ * A key in the "standard" namespace for checking if the file is a symlink.
* Typically the actual type is something else, if we followed the symlink
* to get the type.
* Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
**/
-#define G_FILE_ATTRIBUTE_STD_IS_SYMLINK "std::is-symlink" /* boolean */
+#define G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK "standard::is-symlink" /* boolean */
/**
- * G_FILE_ATTRIBUTE_STD_IS_VIRTUAL:
+ * G_FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL:
*
- * A key in the "std" namespace for checking if a file is virtual.
+ * A key in the "standard" namespace for checking if a file is virtual.
* Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
**/
-#define G_FILE_ATTRIBUTE_STD_IS_VIRTUAL "std::is-virtual" /* boolean */
+#define G_FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL "standard::is-virtual" /* boolean */
/**
- * G_FILE_ATTRIBUTE_STD_NAME:
+ * G_FILE_ATTRIBUTE_STANDARD_NAME:
*
- * A key in the "std" namespace for getting the name of the file.
+ * A key in the "standard" namespace for getting the name of the file.
* The name is the on-disk filename which may not be in any known encoding,
* and can thus not be generally displayed as is.
- * Use #G_FILE_ATTRIBUTE_STD_DISPLAY_NAME if you need to display the
+ * Use #G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME if you need to display the
* name in a user interface.
* Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BYTE_STRING.
**/
-#define G_FILE_ATTRIBUTE_STD_NAME "std::name" /* byte string */
+#define G_FILE_ATTRIBUTE_STANDARD_NAME "standard::name" /* byte string */
/**
- * G_FILE_ATTRIBUTE_STD_DISPLAY_NAME:
+ * G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME:
*
- * A key in the "std" namespace for getting the display name of the file.
+ * A key in the "standard" namespace for getting the display name of the file.
* A display name is guaranteed to be in UTF8 and can thus be displayed in
* the UI.
* Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
**/
-#define G_FILE_ATTRIBUTE_STD_DISPLAY_NAME "std::display-name" /* string */
+#define G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME "standard::display-name" /* string */
/**
- * G_FILE_ATTRIBUTE_STD_EDIT_NAME:
+ * G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME:
*
- * A key in the "std" namespace for edit name of the file.
+ * A key in the "standard" namespace for edit name of the file.
* An edit name is similar to the display name, but it is meant to be
* used when you want to rename the file in the UI. The display name
* might contain information you don't want in the new filename (such as
*
* Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
**/
-#define G_FILE_ATTRIBUTE_STD_EDIT_NAME "std::edit-name" /* string */
+#define G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME "standard::edit-name" /* string */
/**
- * G_FILE_ATTRIBUTE_STD_COPY_NAME:
+ * G_FILE_ATTRIBUTE_STANDARD_COPY_NAME:
*
- * A key in the "std" namespace for getting the copy name of the file.
+ * A key in the "standard" namespace for getting the copy name of the file.
* The copy name is an optional version of the name. If availible its always
* in UTF8, and corresponds directly to the original filename (only transcoded to
* UTF8). This is useful if you want to copy the file to another filesystem that
*
* Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
**/
-#define G_FILE_ATTRIBUTE_STD_COPY_NAME "std::copy-name" /* string */
+#define G_FILE_ATTRIBUTE_STANDARD_COPY_NAME "standard::copy-name" /* string */
/**
- * G_FILE_ATTRIBUTE_STD_ICON:
+ * G_FILE_ATTRIBUTE_STANDARD_ICON:
*
- * A key in the "std" namespace for getting the icon for the file.
+ * A key in the "standard" namespace for getting the icon for the file.
* Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_OBJECT.
* The value for this key should contain a #GIcon.
**/
-#define G_FILE_ATTRIBUTE_STD_ICON "std::icon" /* object (GIcon) */
+#define G_FILE_ATTRIBUTE_STANDARD_ICON "standard::icon" /* object (GIcon) */
/**
- * G_FILE_ATTRIBUTE_STD_CONTENT_TYPE:
+ * G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE:
*
- * A key in the "std" namespace for getting the content type of the file.
+ * A key in the "standard" namespace for getting the content type of the file.
* Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
* The value for this key should contain a valid content type.
**/
-#define G_FILE_ATTRIBUTE_STD_CONTENT_TYPE "std::content-type" /* string */
+#define G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE "standard::content-type" /* string */
/**
- * G_FILE_ATTRIBUTE_STD_FAST_CONTENT_TYPE:
+ * G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE:
*
- * A key in the "std" namespace for getting the fast content type.
+ * A key in the "standard" namespace for getting the fast content type.
* The fast content type isn't as reliable as the regular one, as it
* only uses the filename to guess it, but it is faster to calculate than the
* regular content type.
* Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
*
**/
-#define G_FILE_ATTRIBUTE_STD_FAST_CONTENT_TYPE "std::fast-content-type" /* string */
+#define G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE "standard::fast-content-type" /* string */
/**
- * G_FILE_ATTRIBUTE_STD_SIZE:
+ * G_FILE_ATTRIBUTE_STANDARD_SIZE:
*
- * A key in the "std" namespace for getting the file's size (in bytes).
+ * A key in the "standard" namespace for getting the file's size (in bytes).
* Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_UINT64.
**/
-#define G_FILE_ATTRIBUTE_STD_SIZE "std::size" /* uint64 */
+#define G_FILE_ATTRIBUTE_STANDARD_SIZE "standard::size" /* uint64 */
/**
- * G_FILE_ATTRIBUTE_STD_SYMLINK_TARGET:
+ * G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET:
*
- * A key in the "std" namespace for getting the symlink target, if the file
+ * A key in the "standard" namespace for getting the symlink target, if the file
* is a symlink. Corresponding #GFileAttributeType is
* %G_FILE_ATTRIBUTE_TYPE_BYTE_STRING.
**/
-#define G_FILE_ATTRIBUTE_STD_SYMLINK_TARGET "std::symlink-target" /* byte string */
+#define G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET "standard::symlink-target" /* byte string */
/**
- * G_FILE_ATTRIBUTE_STD_TARGET_URI:
+ * G_FILE_ATTRIBUTE_STANDARD_TARGET_URI:
*
- * A key in the "std" namespace for getting the target URI for the file, in
+ * A key in the "standard" namespace for getting the target URI for the file, in
* the case of %G_FILE_TYPE_SHORTCUT or %G_FILE_TYPE_MOUNTABLE files.
* Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
**/
-#define G_FILE_ATTRIBUTE_STD_TARGET_URI "std::target-uri" /* string */
+#define G_FILE_ATTRIBUTE_STANDARD_TARGET_URI "standard::target-uri" /* string */
/**
- * G_FILE_ATTRIBUTE_STD_SORT_ORDER:
+ * G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER:
*
- * A key in the "std" namespace for setting the sort order of a file.
+ * A key in the "standard" namespace for setting the sort order of a file.
* Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_INT32.
* An example use would be in file managers, which would use this key
* to set the order files are displayed. Files with smaller sort order
* should be sorted first, and files without sort order as if sort order
* was zero.
**/
-#define G_FILE_ATTRIBUTE_STD_SORT_ORDER "std::sort-order" /* int32 */
+#define G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER "standard::sort-order" /* int32 */
/* Entity tags, used to avoid missing updates on save */
#define G_FILE_ATTRIBUTE_ID_FILE "id::file" /* string */
/**
- * G_FILE_ATTRIBUTE_ID_FS:
+ * G_FILE_ATTRIBUTE_ID_FILESYSTEM:
*
* A key in the "id" namespace for getting the file system identifier.
* Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
- * An example use would be during listing files, to avoid recursive
- * directory scanning.
+ * An example use would be during drag and drop to see if the source
+ * and target are on the same filesystem (default to move) or not (default
+ * to copy).
**/
-#define G_FILE_ATTRIBUTE_ID_FS "id::fs" /* string */
+#define G_FILE_ATTRIBUTE_ID_FILESYSTEM "id::filesystem" /* string */
/* Calculated Access Rights for current user */
/* File system info (for g_file_get_filesystem_info) */
/**
- * G_FILE_ATTRIBUTE_FS_SIZE:
+ * G_FILE_ATTRIBUTE_FILESYSTEM_SIZE:
*
- * A key in the "fs" namespace for getting the total size (in bytes) of the file system,
+ * A key in the "filesystem" namespace for getting the total size (in bytes) of the file system,
* used in g_file_query_filesystem_info(). Corresponding #GFileAttributeType
* is %G_FILE_ATTRIBUTE_TYPE_UINT64.
**/
-#define G_FILE_ATTRIBUTE_FS_SIZE "fs::size" /* uint64 */
+#define G_FILE_ATTRIBUTE_FILESYSTEM_SIZE "filesystem::size" /* uint64 */
/**
- * G_FILE_ATTRIBUTE_FS_FREE:
+ * G_FILE_ATTRIBUTE_FILESYSTEM_FREE:
*
- * A key in the "fs" namespace for getting the number of bytes of free space left on the
+ * A key in the "filesystem" namespace for getting the number of bytes of free space left on the
* file system. Corresponding #GFileAttributeType is
* %G_FILE_ATTRIBUTE_TYPE_UINT64.
**/
-#define G_FILE_ATTRIBUTE_FS_FREE "fs::free" /* uint64 */
+#define G_FILE_ATTRIBUTE_FILESYSTEM_FREE "filesystem::free" /* uint64 */
/**
- * G_FILE_ATTRIBUTE_FS_TYPE:
+ * G_FILE_ATTRIBUTE_FILESYSTEM_TYPE:
*
- * A key in the "fs" namespace for getting the file system's type.
+ * A key in the "filesystem" namespace for getting the file system's type.
* Corresponding #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_STRING.
**/
-#define G_FILE_ATTRIBUTE_FS_TYPE "fs::type" /* string */
+#define G_FILE_ATTRIBUTE_FILESYSTEM_TYPE "filesystem::type" /* string */
/**
- * G_FILE_ATTRIBUTE_FS_READONLY:
+ * G_FILE_ATTRIBUTE_FILESYSTEM_READONLY:
*
- * A key in the "fs" namespace for checking if the file system is read only.
+ * A key in the "filesystem" namespace for checking if the file system is read only.
* Is set to %TRUE if the file system is read only. Corresponding
* #GFileAttributeType is %G_FILE_ATTRIBUTE_TYPE_BOOLEAN.
**/
-#define G_FILE_ATTRIBUTE_FS_READONLY "fs::readonly" /* boolean */
+#define G_FILE_ATTRIBUTE_FILESYSTEM_READONLY "filesystem::readonly" /* boolean */
/**
* G_FILE_ATTRIBUTE_GVFS_BACKEND:
completer->basename_loader = data;
g_file_enumerate_children_async (dir,
- G_FILE_ATTRIBUTE_STD_NAME "," G_FILE_ATTRIBUTE_STD_TYPE,
+ G_FILE_ATTRIBUTE_STANDARD_NAME "," G_FILE_ATTRIBUTE_STANDARD_TYPE,
0, 0,
data->cancellable,
got_enum, data);
#ifdef HAVE_SYMLINK
g_file_attribute_info_list_add (list,
- G_FILE_ATTRIBUTE_STD_SYMLINK_TARGET,
+ G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET,
G_FILE_ATTRIBUTE_TYPE_BYTE_STRING,
0);
#endif
}
if (mount_info & MOUNT_INFO_READONLY)
- g_file_info_set_attribute_boolean (fs_info, G_FILE_ATTRIBUTE_FS_READONLY, TRUE);
+ g_file_info_set_attribute_boolean (fs_info, G_FILE_ATTRIBUTE_FILESYSTEM_READONLY, TRUE);
}
#endif
attribute_matcher = g_file_attribute_matcher_new (attributes);
if (g_file_attribute_matcher_matches (attribute_matcher,
- G_FILE_ATTRIBUTE_FS_FREE))
+ G_FILE_ATTRIBUTE_FILESYSTEM_FREE))
{
#ifdef G_OS_WIN32
gchar *localdir = g_path_get_dirname (local->filename);
g_free (localdir);
if (GetDiskFreeSpaceExW (wdirname, &li, NULL, NULL))
- g_file_info_set_attribute_uint64 (info, G_FILE_ATTRIBUTE_FS_FREE, (guint64)li.QuadPart);
+ g_file_info_set_attribute_uint64 (info, G_FILE_ATTRIBUTE_FILESYSTEM_FREE, (guint64)li.QuadPart);
g_free (wdirname);
#else
- g_file_info_set_attribute_uint64 (info, G_FILE_ATTRIBUTE_FS_FREE, block_size * statfs_buffer.f_bavail);
+ g_file_info_set_attribute_uint64 (info, G_FILE_ATTRIBUTE_FILESYSTEM_FREE, block_size * statfs_buffer.f_bavail);
#endif
}
if (g_file_attribute_matcher_matches (attribute_matcher,
- G_FILE_ATTRIBUTE_FS_SIZE))
+ G_FILE_ATTRIBUTE_FILESYSTEM_SIZE))
{
#ifdef G_OS_WIN32
gchar *localdir = g_path_get_dirname (local->filename);
g_free (localdir);
if (GetDiskFreeSpaceExW (wdirname, NULL, &li, NULL))
- g_file_info_set_attribute_uint64 (info, G_FILE_ATTRIBUTE_FS_SIZE, (guint64)li.QuadPart);
+ g_file_info_set_attribute_uint64 (info, G_FILE_ATTRIBUTE_FILESYSTEM_SIZE, (guint64)li.QuadPart);
g_free (wdirname);
#else
- g_file_info_set_attribute_uint64 (info, G_FILE_ATTRIBUTE_FS_SIZE, block_size * statfs_buffer.f_blocks);
+ g_file_info_set_attribute_uint64 (info, G_FILE_ATTRIBUTE_FILESYSTEM_SIZE, block_size * statfs_buffer.f_blocks);
#endif
}
#ifdef USE_STATFS
fstype = get_fs_type (statfs_buffer.f_type);
if (fstype &&
g_file_attribute_matcher_matches (attribute_matcher,
- G_FILE_ATTRIBUTE_FS_TYPE))
- g_file_info_set_attribute_string (info, G_FILE_ATTRIBUTE_FS_TYPE, fstype);
+ G_FILE_ATTRIBUTE_FILESYSTEM_TYPE))
+ g_file_info_set_attribute_string (info, G_FILE_ATTRIBUTE_FILESYSTEM_TYPE, fstype);
#endif
if (g_file_attribute_matcher_matches (attribute_matcher,
- G_FILE_ATTRIBUTE_FS_READONLY))
+ G_FILE_ATTRIBUTE_FILESYSTEM_READONLY))
{
#ifdef G_OS_WIN32
/* need to implement with *unix_mount* */
}
if (g_file_attribute_matcher_matches (attribute_matcher,
- G_FILE_ATTRIBUTE_ID_FS))
+ G_FILE_ATTRIBUTE_ID_FILESYSTEM))
{
char *id = _g_local_file_info_create_fs_id (statbuf);
- g_file_info_set_attribute_string (info, G_FILE_ATTRIBUTE_ID_FS, id);
+ g_file_info_set_attribute_string (info, G_FILE_ATTRIBUTE_ID_FILESYSTEM, id);
g_free (id);
}
}
g_file_info_set_is_hidden (info, TRUE);
if (basename != NULL && basename[strlen (basename) -1] == '~')
- g_file_info_set_attribute_boolean (info, G_FILE_ATTRIBUTE_STD_IS_BACKUP, TRUE);
+ g_file_info_set_attribute_boolean (info, G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP, TRUE);
if (is_symlink &&
g_file_attribute_matcher_matches (attribute_matcher,
- G_FILE_ATTRIBUTE_STD_SYMLINK_TARGET))
+ G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET))
{
char *link = read_link (path);
g_file_info_set_symlink_target (info, link);
}
if (g_file_attribute_matcher_matches (attribute_matcher,
- G_FILE_ATTRIBUTE_STD_DISPLAY_NAME))
+ G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME))
{
char *display_name = g_filename_display_basename (path);
}
if (g_file_attribute_matcher_matches (attribute_matcher,
- G_FILE_ATTRIBUTE_STD_EDIT_NAME))
+ G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME))
{
char *edit_name = g_filename_display_basename (path);
g_file_info_set_edit_name (info, edit_name);
if (g_file_attribute_matcher_matches (attribute_matcher,
- G_FILE_ATTRIBUTE_STD_COPY_NAME))
+ G_FILE_ATTRIBUTE_STANDARD_COPY_NAME))
{
char *copy_name = g_filename_to_utf8 (basename, -1, NULL, NULL, NULL);
if (copy_name)
- g_file_info_set_attribute_string (info, G_FILE_ATTRIBUTE_STD_COPY_NAME, copy_name);
+ g_file_info_set_attribute_string (info, G_FILE_ATTRIBUTE_STANDARD_COPY_NAME, copy_name);
g_free (copy_name);
}
if (g_file_attribute_matcher_matches (attribute_matcher,
- G_FILE_ATTRIBUTE_STD_CONTENT_TYPE) ||
+ G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE) ||
g_file_attribute_matcher_matches (attribute_matcher,
- G_FILE_ATTRIBUTE_STD_ICON))
+ G_FILE_ATTRIBUTE_STANDARD_ICON))
{
char *content_type = get_content_type (basename, path, &statbuf, is_symlink, symlink_broken, flags, FALSE);
g_file_info_set_content_type (info, content_type);
if (g_file_attribute_matcher_matches (attribute_matcher,
- G_FILE_ATTRIBUTE_STD_ICON))
+ G_FILE_ATTRIBUTE_STANDARD_ICON))
{
char *mimetype_icon, *generic_mimetype_icon, *type_icon, *p;
char *icon_names[3];
}
if (g_file_attribute_matcher_matches (attribute_matcher,
- G_FILE_ATTRIBUTE_STD_FAST_CONTENT_TYPE))
+ G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE))
{
char *content_type = get_content_type (basename, path, &statbuf, is_symlink, symlink_broken, flags, TRUE);
if (content_type)
{
- g_file_info_set_attribute_string (info, G_FILE_ATTRIBUTE_STD_FAST_CONTENT_TYPE, content_type);
+ g_file_info_set_attribute_string (info, G_FILE_ATTRIBUTE_STANDARD_FAST_CONTENT_TYPE, content_type);
g_free (content_type);
}
}
#endif
#ifdef HAVE_SYMLINK
- else if (strcmp (attribute, G_FILE_ATTRIBUTE_STD_SYMLINK_TARGET) == 0)
+ else if (strcmp (attribute, G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET) == 0)
return set_symlink (filename, &value, error);
#endif
/* Set symlink first, since this recreates the file */
#ifdef HAVE_SYMLINK
- value = _g_file_info_get_attribute_value (info, G_FILE_ATTRIBUTE_STD_SYMLINK_TARGET);
+ value = _g_file_info_get_attribute_value (info, G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET);
if (value)
{
if (!set_symlink (filename, value, error))
poll_monitor->timeout = FALSE;
- g_file_query_info_async (poll_monitor->file, G_FILE_ATTRIBUTE_ETAG_VALUE "," G_FILE_ATTRIBUTE_STD_SIZE,
+ g_file_query_info_async (poll_monitor->file, G_FILE_ATTRIBUTE_ETAG_VALUE "," G_FILE_ATTRIBUTE_STANDARD_SIZE,
0, 0, NULL, got_new_info, g_object_ref (poll_monitor));
return FALSE;
poll_monitor->file = g_object_ref (file);
- g_file_query_info_async (file, G_FILE_ATTRIBUTE_ETAG_VALUE "," G_FILE_ATTRIBUTE_STD_SIZE,
+ g_file_query_info_async (file, G_FILE_ATTRIBUTE_ETAG_VALUE "," G_FILE_ATTRIBUTE_STANDARD_SIZE,
0, 0, NULL, got_initial_info, g_object_ref (poll_monitor));
return G_FILE_MONITOR (poll_monitor);