Remove the stat() time barrier, as it seems to cause bug #463907 (thanks

2007-09-03  Emmanuele Bassi  <ebassi@gnome.org>

	* 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
This commit is contained in:
Emmanuele Bassi
2007-09-03 09:49:59 +00:00
committed by Emmanuele Bassi
parent 5ef4891d0b
commit ba56e7dd57
2 changed files with 6 additions and 6 deletions

View File

@ -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)
{