periodic testing of changed files can be now disabled
authorVladimir Nadvornik <nadvornik@suse.cz>
Sun, 20 Jul 2008 15:04:40 +0000 (15:04 +0000)
committerVladimir Nadvornik <nadvornik@suse.cz>
Sun, 20 Jul 2008 15:04:40 +0000 (15:04 +0000)
src/filedata.c
src/image.c

index bded5a4..45c5dca 100644 (file)
@@ -1797,6 +1797,7 @@ static void realtime_monitor_check_cb(gpointer key, gpointer value, gpointer dat
 
 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;
 }
index 4b56016..4f279b2 100644 (file)
@@ -1358,8 +1358,8 @@ static void image_notify_cb(FileData *fd, NotifyType type, gpointer data)
        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)
                {