Commit ba56e7dd authored by Emmanuele Bassi's avatar Emmanuele Bassi Committed by Emmanuele Bassi

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
parent 5ef4891d
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).
2007-08-31 Richard Hult <richard@imendio.com>
* configure.in: Revert the previous change as it broke the build
......
......@@ -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)
{
......
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