Re: [PATCH] weird parent window selection bug



On Thu, 14 Oct 2004 18:52:07 +0200, Alexander Larsson <alexl redhat com> wrote:
> Yes. Its due to the order of the metadata for the files/dirs being
> read.
> 
> FMDirectoryView waits on both metadata_for_directory_as_file_pending and
> metadata_for_files_in_directory_pending to be read before starting to
> read the directory, so if these are both in memory things work out. If
> they are not, we get the bug.
> 
> Now, for /home that means reading the files ~/.nautilus/metadata called
> something like "file:///.xml" (for the directory_as_file) and
> "file:///home.xml" (files_in_directory). Since you've
> visited /home/user, the metadata file for file:///home is already
> loaded, so we're just waiting for metadata_for_directory_as_file. On the
> second run both metadata files are cached.
> 
> I don't know why it only affected the list view though. Maybe it didn't,
> maybe its the fact that we had to load a new view and switch to it
> instead of reusing the old view that affected the codepaths taken and
> caused the bug.

Ahh, I understand now. So that's where all the metadata is stored!
Very interesting. Thanks for explanation!

Jimmy



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