Make G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT only emitted on close()

Hi hi,

Currently, G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT is issued in two
 * If a file is updated, not closed, and the last update happened more
than 2 seconds ago (hardcoded value).
 * If a file is updated and closed.

After a discussion in IRC, it was suggested (Company, kalikiana,
walters...) that this emission of virtual CHANGES_DONE_HINT events
should be fully removed, so that the event is only sent on file close().

The virtual CHANGES_DONE_HINT emission can be done, if needed, by the
application using GFileMonitor, refreshing a timeout every time a
CHANGED event is received, as currently done by the GFileMonitor

For an example of the current glib master behavior and the new one if
the virtual emission is removed, see

During the discussion it was also suggested deprecating

Anyone with comments about these issues?

Where's this virtual emission of CHANGES_DONE_HINT coming from



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