[gnome-applets] trash: set rate limit for trash monitor



commit 97c5a3b3ced827802b05d42d5d11b563a7ee1ee7
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Tue Apr 7 16:13:37 2020 +0300

    trash: set rate limit for trash monitor

 gnome-applets/trash/trash-applet.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gnome-applets/trash/trash-applet.c b/gnome-applets/trash/trash-applet.c
index 243963f86..c2eeaeecd 100644
--- a/gnome-applets/trash/trash-applet.c
+++ b/gnome-applets/trash/trash-applet.c
@@ -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);


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