mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-02 09:16:17 +01:00
gpollfilemonitor: send 'changes done' for creates
The new rules of GFileMonitor says that users should expect to see a CHANGES_DONE_HINT following a CREATED as well as CHANGED. https://bugzilla.gnome.org/show_bug.cgi?id=739424
This commit is contained in:
parent
62e5ee5514
commit
a367921d44
@ -132,7 +132,7 @@ got_new_info (GObject *source_object,
|
||||
NULL, event);
|
||||
/* We're polling so slowly anyway, so always emit the done hint */
|
||||
if (!g_file_monitor_is_cancelled (G_FILE_MONITOR (poll_monitor)) &&
|
||||
(event == G_FILE_MONITOR_EVENT_CHANGED))
|
||||
(event == G_FILE_MONITOR_EVENT_CHANGED || event == G_FILE_MONITOR_EVENT_CREATED))
|
||||
g_file_monitor_emit_event (G_FILE_MONITOR (poll_monitor),
|
||||
poll_monitor->file,
|
||||
NULL, G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT);
|
||||
|
Loading…
Reference in New Issue
Block a user