Re: Trash LocationWidgetProvider



On Thu, 2006-03-23 at 11:20 -0700, Lakin Wecker wrote:

> However, I have a few questions.  Now that the
> NautilusLocationWidgetProvider interface is no longer used, I needed
> to add the empty-trash callback to the trash-bar.  This is currently
> done when I create the bar in nautilus-window-manage-views.c which
> feels wrong, but I don't know where else to put it.

There is no need for the signal really. Just make button_clicked_cb call
nautilus_file_operations_empty_trash() directly (passing itself as the
widget argument).

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a superhumanly strong crooked librarian with a mysterious suitcase 
handcuffed to his arm. She's an elegant tomboy nun descended from a line of 
powerful witches. They fight crime! 




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