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

Maciej Pilichowski bluedzins at wp.pl
Sun May 2 12:31:38 EDT 2010


Hi,

  Normally you don't do anything special -- you just show the dialog 
and it gets focus.

  But here is the catch: I don't want to show new item in taskbar just 
for dialog so I set "skip taskbar" for it. In effect:

a) there is only one entry in taskbar for application, not two (one 
for main window, the second for the dialog) 

b) after showing the dialog, main window still has the focus, user has 
to click on dialog to switch focus

(a) is desired, (b) not. 

  So, the question: how to show the dialog with the focus?

Cheers,


More information about the Gtk-sharp-list mailing list