Re: Bug #314280: .hidden files in libgnomeui file-chooser

On Fri, 2007-04-20 at 23:01 +0200, Julian Reich wrote:
> Hi,
> I'd like to fix bug #314280. Unfortunately I've little knowledge of the 
> Gnome source code / architecture.
> I'm not 100% sure whether this list is appropriate; I hope there is 
> anyone able to help me anyway.
> I thought it would be most appropriate to implement a function that 
> takes GtkFilesystemGnomeVFS and the URI of the file or folder to be 
> read. This function could lookup the .hidden file in the (containing) 
> folder. Reading the .hidden file is no problem. My problem is that I'd 
> like to "save" the information which files are hidden in the 
> GtkFileFolderGnomeVFS structure so that all files in a specific folder 
> are looked up at once (like in GtkFileFolderUnix). GtkFileFolderGnomeVFS 
> has no HashTable similar to stat_info in GtkFileFolderUnix, in addition 
> the VFS file folder is not looked up in info_from_vfs_info() therefore 
> it would be necessary to add this lookup.
> Is there a more appropriate solution to this problem?

Can't you just add a cache for the .hidden files, using a hashtable from
folder uri to list of hidden files?

 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a deeply religious voodoo cowboy in drag. She's a hard-bitten 
green-skinned widow from beyond the grave. They fight crime! 

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