Better document G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT
It would be nice to have more thorough documentation on when G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT
is fired, and if it reliably fires. Currently, my file monitor is just triggering on all events, but I feel like I ought to be able to cut down on churn with CHANGES_DONE_HINT
. But I don't know how to best use it.
Testing on my local system suggests it fires after CHANGED
and CREATED
, but not after DELETED
, 'ATTRIBUTE_CHANGED, 'RENAMED', 'MOVED_IN', or 'MOVED_OUT
. (I didn't test unmounting or the deprecated MOVED
.) I don't know how much of this is dependent on my local system. I don't know if the event type is reliable. It's weird that CREATED
gets it but DELETED
doesn't. (I guess because creating involves open
and close
?)