[glib] gpollfilemonitor: send 'changes done' for creates
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gpollfilemonitor: send 'changes done' for creates
- Date: Fri, 5 Jun 2015 18:57:41 +0000 (UTC)
commit a367921d445f290263b052ad3da55525c1a5deb3
Author: Ryan Lortie <desrt desrt ca>
Date: Thu Mar 26 16:31:48 2015 -0400
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
gio/gpollfilemonitor.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gpollfilemonitor.c b/gio/gpollfilemonitor.c
index b1238a3..8e6dc5b 100644
--- a/gio/gpollfilemonitor.c
+++ b/gio/gpollfilemonitor.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]