Re: [PATCH] bug 75212: empty trash dialog is modal



On Tue, 14 May 2002, Simon South wrote:

> Attached is a patch which makes the "Empty Trash?" confirmation dialog 
> non-modal, fixing bug 75212.  It introduces a new static global 
> variable, confirm_empty_trash_dialog, which holds the dialog box (if 
> open) and is tested to make sure multiple dialogs aren't created.
> 
> I'll post to Bugzilla if it looks okay.

You need to gtk_window_set_transient_for() the window before you present() 
it. Otherwise it looks good.
 

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a lounge-singing one-eyed assassin with a secret. She's an enchanted 
cat-loving cab driver from a secret island of warrior women. They fight crime! 




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