[gthumb/ext] added the parse name (gth::file::full-name) to metadata, bug 602962
- From: Michael J. Chudobiak <mjc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gthumb/ext] added the parse name (gth::file::full-name) to metadata, bug 602962
- Date: Wed, 25 Nov 2009 18:06:07 +0000 (UTC)
commit 6004dc8e9835d74d608777e3d30b60939d1cd554
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date: Wed Nov 25 13:05:31 2009 -0500
added the parse name (gth::file::full-name) to metadata, bug 602962
gthumb/gth-main-default-metadata.c | 1 +
gthumb/gth-metadata-provider-file.c | 6 +++++-
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/gthumb/gth-main-default-metadata.c b/gthumb/gth-main-default-metadata.c
index 0f8a39c..730e348 100644
--- a/gthumb/gth-main-default-metadata.c
+++ b/gthumb/gth-main-default-metadata.c
@@ -42,6 +42,7 @@ GthMetadataInfo file_metadata_info[] = {
{ "gth::file::display-mtime", N_("Modified"), "file", 3, GTH_METADATA_ALLOW_EVERYWHERE },
{ "standard::fast-content-type", N_("Type"), "file", 4, GTH_METADATA_ALLOW_EVERYWHERE },
{ "gth::file::is-modified", NULL, "file", 5, GTH_METADATA_ALLOW_NOWHERE },
+ { "gth::file::full-name", N_("Full Name"), "file", 6, GTH_METADATA_ALLOW_EVERYWHERE },
{ "general::size", N_("Dimensions"), "general", 10, GTH_METADATA_ALLOW_EVERYWHERE },
{ "general::duration", N_("Duration"), "general", 11, GTH_METADATA_ALLOW_EVERYWHERE },
diff --git a/gthumb/gth-metadata-provider-file.c b/gthumb/gth-metadata-provider-file.c
index 5f85293..37b7808 100644
--- a/gthumb/gth-metadata-provider-file.c
+++ b/gthumb/gth-metadata-provider-file.c
@@ -60,6 +60,10 @@ gth_metadata_provider_file_read (GthMetadataProvider *self,
g_file_info_set_attribute_string (file_data->info, "gth::file::display-mtime", value);
g_free (value);
+ value = g_file_get_parse_name (file_data->file);
+ g_file_info_set_attribute_string (file_data->info, "gth::file::full-name", value);
+ g_free (value);
+
value_s = get_static_string (g_file_info_get_content_type (file_data->info));
if (value_s != NULL)
g_file_info_set_attribute_string (file_data->info, "gth::file::content-type", value_s);
@@ -92,7 +96,7 @@ gth_metadata_provider_constructor (GType type,
obj = parent_class->constructor (type, n_construct_properties, construct_properties);
self = GTH_METADATA_PROVIDER (obj);
- g_object_set (self, "readable-attributes", "gth::file::display-size,gth::file::display-mtime,gth::file::content-type,gth::file::is-modified", NULL);
+ g_object_set (self, "readable-attributes", "gth::file::display-size,gth::file::display-mtime,gth::file::content-type,gth::file::is-modified,gth::file::full-name", NULL);
return obj;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]