Re: Focus of about dialog



Hello.

I've added an about dialog to my gtk application, using GtkAboutDialog.
However, when the dialog is displayed, the user can still switch to the
main window, which is undesirable. The dialog should steal focus of the
whole application. How can I do that ? I have looked at
gtk_widget_set_parent_window () but couldn't get it to work.

Have a look at gtk_window_set_modal() and
gtk_window_set_transient_for() functions.

Tadej

-- 
Tadej BorovÅak
tadeboro.blogspot.com
tadeboro gmail com
tadej borovsak gmail com



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