Commit 3e0ac18a authored by Paolo Borelli's avatar Paolo Borelli Committed by Paolo Borelli

be more careful when retrieving mtime.

2007-11-04  Paolo Borelli  <pborelli@katamail.com>

	* gedit/gedit-document.c: be more careful when retrieving mtime.


svn path=/trunk/; revision=6000
parent 8079fb2c
2007-11-04 Paolo Borelli <pborelli@katamail.com>
* gedit/gedit-document.c: be more careful when retrieving mtime.
2007-11-02 Steve Frécinaux <code@istique.net>
* bindings/python/Makefile.am:
......
......@@ -964,7 +964,7 @@ _gedit_document_check_externally_modified (GeditDocument *doc)
{
GnomeVFSFileInfo *info;
GnomeVFSResult result;
gint file_mtime;
gboolean res = FALSE;
g_return_val_if_fail (GEDIT_IS_DOCUMENT (doc), FALSE);
......@@ -986,11 +986,14 @@ _gedit_document_check_externally_modified (GeditDocument *doc)
return FALSE;
}
file_mtime = info->mtime;
if (info->valid_fields & GNOME_VFS_FILE_INFO_FIELDS_MTIME)
{
res = info->mtime > doc->priv->mtime;
}
gnome_vfs_file_info_unref (info);
return (file_mtime > doc->priv->mtime);
return res;
}
static void
......
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