From ba56e7dd57eec5f8176d73c4ffacc484fadfa415 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 3 Sep 2007 09:49:59 +0000 Subject: Remove the stat() time barrier, as it seems to cause bug #463907 (thanks 2007-09-03 Emmanuele Bassi * gtk/gtkrecentmanager.c (gtk_recent_manager_poll_timeout): Remove the stat() time barrier, as it seems to cause bug #463907 (thanks to Sebastien Bacher). svn path=/trunk/; revision=18713 --- gtk/gtkrecentmanager.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'gtk/gtkrecentmanager.c') diff --git a/gtk/gtkrecentmanager.c b/gtk/gtkrecentmanager.c index de5b396639..4022b46c3c 100644 --- a/gtk/gtkrecentmanager.c +++ b/gtk/gtkrecentmanager.c @@ -500,7 +500,6 @@ gtk_recent_manager_poll_timeout (gpointer data) { GtkRecentManager *manager = GTK_RECENT_MANAGER (data); GtkRecentManagerPrivate *priv = manager->priv; - time_t now; struct stat stat_buf; int stat_res; @@ -508,11 +507,6 @@ gtk_recent_manager_poll_timeout (gpointer data) if (priv->write_in_progress || priv->read_in_progress) return TRUE; - /* do not stat the file if we're within 5 seconds from the last stat() */ - now = time (NULL); - if (now < priv->last_mtime + 5); - return TRUE; - stat_res = g_stat (priv->filename, &stat_buf); if (stat_res < 0) { -- cgit v1.2.1