[Gtk-sharp-list] Creating modal dialogs

John Luke john.luke@gmail.com
Tue, 15 Mar 2005 11:53:45 -0500

On Tue, 2005-03-15 at 11:41 -0500, Mike Flippin wrote:
> Could someone tell me how you create a modal dialog over a window? I 
> have two windows and want one to be a modal dialog, and it is set to be 
> a modal window the glade xml file, but I cannot find anything in the 
> docs that lets me make it modal for the main window of my program. I 
> tried setting the main window's Child property equal to the modal 
> window, but that failed. Also is there any guide out there that is 
> relatively up to date for people coming to Gtk# from other toolkits like 
> Swing? Thanks.
Try also setting .TransientFor = parentWindow;