Re: remade patches for libnautilus-private/nautilus-file.c

On Tue, 2005-03-22 at 19:41 +0100, edoardo wrote:
> dude, as you've seen today modifications similar to the ones you've 
> suggested have been made. _ACCESS is now used, in my latest patch. but you 
> did say it's too slow to call get_file_info where i've called it. so where 
> could i call it from? it would be helpful if you pointed that out. thank 
> you! : )

That depends on how you implement the new NautilusFileAttribute.
Wherever the i/o is done for that attribute you can use the _ACCESS
flag. Maybe this is in a new function you write, or perhaps you can
conditionally reuse the one in file_info_start. 

The NAUTILUS_FILE_ATTRIBUTE_SLOW_MIME_TYPE attribute works quite similar
to how a NAUTILUS_FILE_ATTRIBUTE_ACCESS_RIGHTS attribute would work, so
studying that might help.

 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a hate-fuelled bohemian jungle king She's an elegant extravagent lawyer 
from a different time and place. They fight crime! 

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