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:
committed by
Emmanuele Bassi
parent
5ef4891d0b
commit
ba56e7dd57
@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user