[eog: 1/2] Remove directories when unmount external drive
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog: 1/2] Remove directories when unmount external drive
- Date: Thu, 29 Apr 2021 17:53:37 +0000 (UTC)
commit bc6fe062386f51ad9c5fff6aae46121746418d3b
Author: Krifa75 <yahiaoui fakhri gmail com>
Date: Thu Apr 29 12:32:52 2021 +0200
Remove directories when unmount external drive
src/eog-list-store.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/eog-list-store.c b/src/eog-list-store.c
index 08f5305b..5a422eaa 100644
--- a/src/eog-list-store.c
+++ b/src/eog-list-store.c
@@ -461,6 +461,8 @@ file_monitor_changed_cb (GFileMonitor *monitor,
}
g_object_unref (file_info);
break;
+ case G_FILE_MONITOR_EVENT_PRE_UNMOUNT:
+ case G_FILE_MONITOR_EVENT_UNMOUNTED:
case G_FILE_MONITOR_EVENT_MOVED_OUT:
case G_FILE_MONITOR_EVENT_DELETED:
if (is_file_in_list_store_file (store, file, &iter)) {
@@ -544,8 +546,6 @@ file_monitor_changed_cb (GFileMonitor *monitor,
g_object_unref (file_info);
break;
case G_FILE_MONITOR_EVENT_CHANGED:
- case G_FILE_MONITOR_EVENT_PRE_UNMOUNT:
- case G_FILE_MONITOR_EVENT_UNMOUNTED:
case G_FILE_MONITOR_EVENT_MOVED:
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]