summaryrefslogtreecommitdiff
path: root/gtk/gtkrecentmanager.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2007-09-03 09:49:59 +0000
committerEmmanuele Bassi <ebassi@src.gnome.org>2007-09-03 09:49:59 +0000
commitba56e7dd57eec5f8176d73c4ffacc484fadfa415 (patch)
tree87b75dbcf2346130613695e94bf2c8e7beea12e9 /gtk/gtkrecentmanager.c
parent5ef4891d0bc75aed37b9b2774aaef4357fbfa53a (diff)
downloadgtk+-ba56e7dd57eec5f8176d73c4ffacc484fadfa415.tar.gz
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
Diffstat (limited to 'gtk/gtkrecentmanager.c')
-rw-r--r--gtk/gtkrecentmanager.c6
1 files changed, 0 insertions, 6 deletions
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)
{