Kaydet (Commit) c7871c70 authored tarafından Enrico Tröger's avatar Enrico Tröger

Enable file monitoring for files which are written to disk by Geany for the first time.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3978 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 5be4c4ae
2009-07-16 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* src/document.c:
Enable file monitoring for files which are written to disk by Geany
for the first time.
2009-07-16 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/search.c:
......
......@@ -1661,6 +1661,7 @@ static gchar *write_data_to_disk(GeanyDocument *doc, const gchar *locale_filenam
{
doc->real_path = tm_get_real_path(locale_filename);
doc->priv->is_remote = utils_is_remote_path(locale_filename);
monitor_file_setup(doc);
}
return NULL;
......@@ -2918,7 +2919,7 @@ gboolean document_check_disk_status(GeanyDocument *doc, gboolean force)
monitor_resave_missing_file(doc);
ret = TRUE;
}
else if (! use_gio_filemon && /* ignore these check when using GIO */
else if (! use_gio_filemon && /* ignore these checks when using GIO */
(G_UNLIKELY(doc->priv->mtime > cur_time) || G_UNLIKELY(st.st_mtime > cur_time)))
{
g_warning("%s: Something is wrong with the time stamps.", G_STRFUNC);
......
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