Commit bd30f28b authored by Michael Natterer's avatar Michael Natterer 😴

app: if --verbose, make GimpDataFactory print each loaded and saved data

parent 1ae02929
......@@ -364,6 +364,15 @@ gimp_data_factory_real_data_save (GimpDataFactory *factory)
if (! gimp_data_get_file (data))
gimp_data_create_filename (data, writable_dir);
if (factory->priv->gimp->be_verbose)
{
GFile *file = gimp_data_get_file (data);
if (file)
g_print ("Writing dirty data '%s'\n",
gimp_file_get_utf8_name (file));
}
if (! gimp_data_save (data, &error))
{
/* check if there actually was an error (no error
......@@ -702,6 +711,15 @@ gimp_data_factory_data_save_single (GimpDataFactory *factory,
if (! gimp_data_is_writable (data))
return FALSE;
if (factory->priv->gimp->be_verbose)
{
GFile *file = gimp_data_get_file (data);
if (file)
g_print ("Writing dirty data '%s'\n",
gimp_file_get_utf8_name (file));
}
if (! gimp_data_save (data, error))
{
/* check if there actually was an error (no error
......
......@@ -354,6 +354,9 @@ gimp_data_loader_factory_load_data (GimpDataFactory *factory,
container = gimp_data_factory_get_container (factory);
container_obsolete = gimp_data_factory_get_container_obsolete (factory);
if (gimp_data_factory_get_gimp (factory)->be_verbose)
g_print (" Loading %s\n", gimp_file_get_utf8_name (file));
mtime = g_file_info_get_attribute_uint64 (info,
G_FILE_ATTRIBUTE_TIME_MODIFIED);
......
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