Commit 97c5a3b3 authored by Alberts Muktupāvels's avatar Alberts Muktupāvels

trash: set rate limit for trash monitor

parent 3f71b461
Pipeline #168705 passed with stages
in 12 minutes and 59 seconds
......@@ -539,6 +539,7 @@ trash_applet_init (TrashApplet *self)
/* setup the trash backend */
self->trash = g_file_new_for_uri ("trash:/");
self->trash_monitor = g_file_monitor_file (self->trash, 0, NULL, NULL);
g_file_monitor_set_rate_limit (self->trash_monitor, 200);
g_signal_connect_swapped (self->trash_monitor, "changed",
G_CALLBACK (trash_applet_monitor_changed),
self);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment