Re: [PATCH] close window when moving file to trash



On Thu, 2006-03-02 at 15:43 +0100, Christian Neumair wrote:
> Reported as bug 319537 [1].
> 
> The attached patch makes Nautilus close all windows displaying a
> location that was moved to trash. This is neccessary for making it
> consistent with the trash applet. When the applet moves a location to
> trash, file monitors will just receive a delete event for the source
> location, and the file_is_gone check will pass. When Nautilus moves a
> file to the trash, nautilus_file_changes_queue_file_moved is invoked,
> but the file is not marked gone, so the windows displaying it will not
> be closed.

Looks good. I commited this.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a time-tossed sweet-toothed paranormal investigator with a mysterious 
suitcase handcuffed to his arm. She's a cynical gypsy mermaid on her way to 
prison for a murder she didn't commit. They fight crime! 




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