Commit 9fc91d19 authored by Paolo Bacchilega's avatar Paolo Bacchilega
Browse files

do not change the time_modified info when saving embedded data

parent ac7150ee
......@@ -125,6 +125,8 @@ gth_metadata_provider_exiv2_write (GthMetadataProvider *self,
NULL,
&error))
{
GFileInfo *tmp_info;
g_write_file (file_data->file,
FALSE,
G_FILE_CREATE_NONE,
......@@ -132,6 +134,21 @@ gth_metadata_provider_exiv2_write (GthMetadataProvider *self,
size,
NULL,
&error);
tmp_info = g_file_info_new ();
g_file_info_set_attribute_uint64 (tmp_info,
G_FILE_ATTRIBUTE_TIME_MODIFIED,
g_file_info_get_attribute_uint64 (file_data->info, G_FILE_ATTRIBUTE_TIME_MODIFIED));
g_file_info_set_attribute_uint32 (tmp_info,
G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC,
g_file_info_get_attribute_uint32 (file_data->info, G_FILE_ATTRIBUTE_TIME_MODIFIED_USEC));
g_file_set_attributes_from_info (file_data->file,
tmp_info,
G_FILE_QUERY_INFO_NONE,
NULL,
NULL);
g_object_unref (tmp_info);
}
if (buffer != NULL)
......
......@@ -165,6 +165,11 @@ gth_string_list_equal (GthStringList *list1,
GList *keys2;
GList *scan;
if ((list1 == NULL) && (list2 == NULL))
return TRUE;
if ((list1 == NULL) || (list2 == NULL))
return FALSE;
keys1 = list1->priv->list;
keys2 = list2->priv->list;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment