On Wed, 2006-06-21 at 18:11 +0200, Atanas Atanasov wrote:
> > Don't forget to set the transient window:
> >
> > gtk_window_set_transient_for(GTK_WINDOW(window),GTK_WINDOW(parent_window));
> 
> I saw this option, but I would like to make the messagebox work
> independently of the window from which it is called. Is this possible?
> What I need is exatcly the behaviour of a modal MessageBox under
> Windows.

This may not be possible.  Under X11, there is not yet a widely used
idea of windows belonging in a group together (grouped by application).
Windows and dialogs are more independent on X11.  So unless you use the
set_transiet_for, the window manager likely won't have any idea which
windows the dialog should be set modal for.

Also remember that many window policies are set by the window manager,
not your app, so behavior will often be different on different desktops.
All you can and should do is give hints to the WM (using
set_transient_for, etc) and leave it at that.

Michael

> 
> Atanas
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
> 

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to