[gtk+] recent-manager: Emit ::changed on file deletion



commit bccef4e41aa45801b96dfd1c33a376d2fa1bb6e6
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Sun Apr 10 18:28:01 2016 +0100

    recent-manager: Emit ::changed on file deletion
    
    This will clear out the list of recently used files, and will allow GVFS
    to handle this case.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=693077

 gtk/gtkrecentmanager.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkrecentmanager.c b/gtk/gtkrecentmanager.c
index 78cd0ad..5304b84 100644
--- a/gtk/gtkrecentmanager.c
+++ b/gtk/gtkrecentmanager.c
@@ -537,14 +537,12 @@ gtk_recent_manager_monitor_changed (GFileMonitor      *monitor,
     {
     case G_FILE_MONITOR_EVENT_CHANGED:
     case G_FILE_MONITOR_EVENT_CREATED:
+    case G_FILE_MONITOR_EVENT_DELETED:
       gdk_threads_enter ();
       gtk_recent_manager_changed (manager);
       gdk_threads_leave ();
       break;
 
-    case G_FILE_MONITOR_EVENT_DELETED:
-      break;
-
     default:
       break;
     }


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