changeset 903:c93823609f15

periodic testing of changed files can be now disabled
author nadvornik
date Sun, 20 Jul 2008 15:04:40 +0000
parents c414002a1f27
children 1698baa37871
files src/filedata.c src/image.c
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/filedata.c	Sun Jul 20 14:56:32 2008 +0000
+++ b/src/filedata.c	Sun Jul 20 15:04:40 2008 +0000
@@ -1797,6 +1797,7 @@
 
 static gboolean realtime_monitor_cb(gpointer data)
 {
+	if (!options->update_on_time_change) return TRUE;
 	g_hash_table_foreach(file_data_monitor_pool, realtime_monitor_check_cb, NULL);
 	return TRUE;
 }
--- a/src/image.c	Sun Jul 20 14:56:32 2008 +0000
+++ b/src/image.c	Sun Jul 20 15:04:40 2008 +0000
@@ -1358,8 +1358,8 @@
 	if (!imd || !image_get_pixbuf(imd) ||
 	    /* imd->il || */ /* loading in progress - do not check - it should start from the beginning anyway */ 
 	    !imd->image_fd || /* nothing to reload */
-	    imd->state == IMAGE_STATE_NONE || /* loading not started, no need to reload */
-	    !options->update_on_time_change) return;
+	    imd->state == IMAGE_STATE_NONE /* loading not started, no need to reload */
+	    ) return;
 
 	if (type == NOTIFY_TYPE_REREAD && fd == imd->image_fd)
 		{