Re: [PATCH] Don't install exp. callbacks on multiple selections



On Fri, 2004-10-01 at 16:58 +0200, Martin Wehner wrote:
> When you select multiple (all) files in a directory, nautilus installs
> expensive callbacks on each file in the selection (mainly the slow mime
> sniffer). Basically you don't need to do it at all because the
> availability of the attributes needed to lauch a file are ensured when
> activating. But you get better response time on activating if you sniff
> the attributes ahead of time, so this patch only installs them when a
> single item is selected.

Looks very good. Feel free to commit.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's an oversexed devious househusband with a winning smile and a way with the 
ladies. She's a sharp-shooting cigar-chomping Valkyrie in the witness 
protection program. They fight crime! 




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