[Gtk-sharp-list] How to initially set focus for modal dialog regardless taskbar?

Maciej Pilichowski bluedzins at wp.pl
Mon May 3 03:09:38 EDT 2010


On Sunday 02 May 2010 22:25:58 Christopher David Howie wrote:

> Try setting the dialog's TransientFor property to the main window. 
> This will prevent any interaction with the main window until the
> dialog is closed, and it should also transfer focus the dialog
> whenever the main window gets focused.

Thank you, indeed it works. However the new problem showed up -- with 
TransientFor I cannot close the dialog with [x] widget correctly. 
First click is ignored, and only the second click closes the dialog. 
IOW: I have to click twice on [x] to close the dialog.

Cheers,


More information about the Gtk-sharp-list mailing list