[Rhythmbox-devel] rhythmdb-monitor.c failed to compile with new file monitor event in glib 2.23.4



Dear All,

I do NOT known the role of the 'file' and 'other_file' parameters in the
call-back in this case, but did the following bad solution do something
right?

Regards,
Patrice.

diff --git a/rhythmdb/rhythmdb-monitor.c b/rhythmdb/rhythmdb-monitor.c
index 5585278..a1dc9d4 100644
--- a/rhythmdb/rhythmdb-monitor.c
+++ b/rhythmdb/rhythmdb-monitor.c
@@ -297,6 +297,10 @@ rhythmdb_directory_change_cb (GFileMonitor *monitor,
 	rb_debug ("directory event %d for %s", event_type, canon_uri);
 
 	switch (event_type) {
+        case G_FILE_MONITOR_EVENT_MOVED:
+		rhythmdb_directory_change_cb (monitor, other_file, NULL, G_FILE_MONITOR_EVENT_DELETED, db);
+		rhythmdb_directory_change_cb (monitor, file, NULL, G_FILE_MONITOR_EVENT_CREATED, db);
+		break;
         case G_FILE_MONITOR_EVENT_CREATED:
 		{
 			GSList *cur;




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