Andrei Yurkevich wrote:

Miroslav Rajcic wrote:

I am trying to show the dialog in a modal way.
I've read in some old posts that the way to do it is like this:

..


My problem is that dielog doesn't seem modal at all. When I click on its parent window, dialog falls back underneath all other windows on the desktop. Even setting this doesn't help: gtk_window_set_modal (GTK_WINDOW (dialog1), TRUE); gtk_window_set_keep_above(GTK_WINDOW (dialog1), TRUE);


try this:

gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (parent));
gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);

cheers,
Andrei



I've already tried this, bur it just doesn't work on Windows version. On GTK my code seems to be
working OK.


Thanks,
  Miroslav
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to