From 73182528fa372455fdd0242b461ffed058eccf33 Mon Sep 17 00:00:00 2001 From: Uwe Scholz Date: Wed, 24 Feb 2021 23:13:27 +0100 Subject: [PATCH 1/2] Improving documentation for g_file_info_get_size, fixing #2333 --- gio/gfileinfo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gio/gfileinfo.c b/gio/gfileinfo.c index 42cdc7a5d..b83afa130 100644 --- a/gio/gfileinfo.c +++ b/gio/gfileinfo.c @@ -1733,9 +1733,10 @@ g_file_info_get_content_type (GFileInfo *info) * g_file_info_get_size: * @info: a #GFileInfo. * - * Gets the file's size. + * Gets the file's size (in bytes). The size is internally converted + * from #guint64 to #goffset before returning the result. * - * Returns: a #goffset containing the file's size. + * Returns: a #goffset containing the file's size (in bytes). **/ goffset g_file_info_get_size (GFileInfo *info) From 429ccbd6d3d7ed6cd2348b41653a277b5c187e91 Mon Sep 17 00:00:00 2001 From: Uwe Scholz Date: Thu, 25 Feb 2021 21:46:59 +0100 Subject: [PATCH 2/2] Improved the description of g_file_info_get_content_type function --- gio/gfileinfo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gio/gfileinfo.c b/gio/gfileinfo.c index b83afa130..2a97758b2 100644 --- a/gio/gfileinfo.c +++ b/gio/gfileinfo.c @@ -1733,7 +1733,8 @@ g_file_info_get_content_type (GFileInfo *info) * g_file_info_get_size: * @info: a #GFileInfo. * - * Gets the file's size (in bytes). The size is internally converted + * Gets the file's size (in bytes). The size is retrieved through the value of + * the %G_FILE_ATTRIBUTE_STANDARD_SIZE attribute and is converted * from #guint64 to #goffset before returning the result. * * Returns: a #goffset containing the file's size (in bytes).