summaryrefslogtreecommitdiff
path: root/gtk/gtkrecentmanager.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2016-04-10 18:28:01 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2016-04-10 18:35:38 +0100
commitbccef4e41aa45801b96dfd1c33a376d2fa1bb6e6 (patch)
tree5d127a412184eec1e7f26ef3bc67b757084c49f2 /gtk/gtkrecentmanager.c
parent90d28d6bbf1aae0184e39b8078c21bce45455cd9 (diff)
downloadgtk+-bccef4e41aa45801b96dfd1c33a376d2fa1bb6e6.tar.gz
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
Diffstat (limited to 'gtk/gtkrecentmanager.c')
-rw-r--r--gtk/gtkrecentmanager.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk/gtkrecentmanager.c b/gtk/gtkrecentmanager.c
index 78cd0ad5e6..5304b843ac 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;
}