[grilo] pls: Set file size attribute
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo] pls: Set file size attribute
- Date: Wed, 19 Mar 2014 11:27:56 +0000 (UTC)
commit b88a996231a70334f08bef1153d9cf88ab54f48e
Author: Bastien Nocera <hadess hadess net>
Date: Tue Mar 18 18:08:34 2014 +0100
pls: Set file size attribute
https://bugzilla.gnome.org/show_bug.cgi?id=629002
libs/pls/grl-pls.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libs/pls/grl-pls.c b/libs/pls/grl-pls.c
index cc4072c..1db8996 100644
--- a/libs/pls/grl-pls.c
+++ b/libs/pls/grl-pls.c
@@ -75,6 +75,7 @@ GRL_LOG_DOMAIN_STATIC(libpls_log_domain);
G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE "," \
G_FILE_ATTRIBUTE_STANDARD_TYPE "," \
G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN "," \
+ G_FILE_ATTRIBUTE_STANDARD_SIZE "," \
G_FILE_ATTRIBUTE_TIME_MODIFIED "," \
G_FILE_ATTRIBUTE_THUMBNAIL_PATH "," \
G_FILE_ATTRIBUTE_THUMBNAILING_FAILED "," \
@@ -1297,6 +1298,9 @@ grl_pls_file_to_media (GrlMedia *content,
grl_media_set_mime (media, mime);
}
+ /* Size */
+ grl_media_set_size (media, g_file_info_get_size (info));
+
/* Title */
str = g_strdup (g_file_info_get_display_name (info));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]