Re: [Nautilus-list] file changes not updating in 1.0.5



On Wed, 24 Oct 2001, Alex Larsson wrote:

> On Wed, 24 Oct 2001, Alex Larsson wrote:
> 
> > With fam, when changing the size of a file, it does not immediately update 
> > in a nautilus icon view. Adding or removing files does. But changes only 
> > seem to show up when you click on the icon. 
> > 
> > I've traced this a bit, and the fam interaction seems ok. It seems the 
> > problem is in the new work-queue code or something.
> 
> Yes, the problem seems to be in the work-queue code.

After some irc debugging mjs suggested this patch, which works:

Index: libnautilus-private/nautilus-directory.c
===================================================================
RCS file: /cvs/gnome/nautilus/libnautilus-private/nautilus-directory.c,v
retrieving revision 1.216
diff -u -p -r1.216 nautilus-directory.c
--- libnautilus-private/nautilus-directory.c	2001/09/26 16:37:15	1.216
+++ libnautilus-private/nautilus-directory.c	2001/10/24 23:57:31
@@ -956,6 +956,9 @@ nautilus_directory_notify_files_changed 
 			 * signal.
 			 */
 			file->details->file_info_is_up_to_date = FALSE;
+			nautilus_directory_add_file_to_work_queue (file->details->directory,
+								   file);
+
 			hash_table_list_prepend (changed_lists,
 						 file->details->directory,
 						 file);



One problem is that the updates are delayed one second. Probably the 
hysteresis applying.

 
/ Alex






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]