[eog] EogListStore: Use the CHANGES_DONE_HINT to detect file changes



commit 7e32c42ef40a2fd19227b397913c063bd33f831b
Author: Felix Riemann <friemann gnome org>
Date:   Mon Jun 20 18:59:07 2016 +0200

    EogListStore: Use the CHANGES_DONE_HINT to detect file changes
    
    This avoids problems with the collection because of the file
    not being recognized as a valid image while the changes are written.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=767003

 src/eog-list-store.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/eog-list-store.c b/src/eog-list-store.c
index d5c5df0..a7f6563 100644
--- a/src/eog-list-store.c
+++ b/src/eog-list-store.c
@@ -382,7 +382,7 @@ file_monitor_changed_cb (GFileMonitor *monitor,
        EogImage *image;
 
        switch (event) {
-       case G_FILE_MONITOR_EVENT_CHANGED:
+       case G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT:
                file_info = g_file_query_info (file,
                                               G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE ","
                                               G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME,
@@ -458,7 +458,7 @@ file_monitor_changed_cb (GFileMonitor *monitor,
                }
                g_object_unref (file_info);
                break;
-       case G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT:
+       case G_FILE_MONITOR_EVENT_CHANGED:
        case G_FILE_MONITOR_EVENT_PRE_UNMOUNT:
        case G_FILE_MONITOR_EVENT_UNMOUNTED:
        case G_FILE_MONITOR_EVENT_MOVED:


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