[gthumb/gthumb-3-6] when changing a file metadata update the folder as well



commit 2f832966148897ee59c278bf2bbea25b7cb71081
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sat Apr 20 19:51:32 2019 +0200

    when changing a file metadata update the folder as well
    
    Fixes https://gitlab.gnome.org/GNOME/gthumb/issues/28

 extensions/edit_metadata/dlg-edit-metadata.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/extensions/edit_metadata/dlg-edit-metadata.c b/extensions/edit_metadata/dlg-edit-metadata.c
index ab633534..245bcb74 100644
--- a/extensions/edit_metadata/dlg-edit-metadata.c
+++ b/extensions/edit_metadata/dlg-edit-metadata.c
@@ -123,9 +123,12 @@ saver_completed_cb (GthTask  *task,
        else {
                for (scan = data->file_list; scan; scan = scan->next) {
                        GthFileData *file_data = scan->data;
+                       GFile       *parent;
                        GList       *files;
 
+                       parent = g_file_get_parent (file_data->file);
                        files = g_list_prepend (NULL, g_object_ref (file_data->file));
+                       gth_monitor_folder_changed (monitor, parent, files, GTH_MONITOR_EVENT_CHANGED);
                        gth_monitor_metadata_changed (monitor, file_data);
 
                        _g_object_list_unref (files);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]