diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-12-16 00:05:26 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-12-16 00:05:26 +0000 |
commit | 6669d0c581baced1feed0c0df587b96d72c386f1 (patch) | |
tree | 5084ad70f513a6720043fab4526ef303edb5e31d /gtk/gtkdialog.c | |
parent | 0c9448f07fc197e619eaceee6096c60feebd3c2c (diff) | |
download | gtk+-6669d0c581baced1feed0c0df587b96d72c386f1.tar.gz |
Some fixes for modal hint setting based on a patch from Arvind Samptur
Sun Dec 15 18:47:30 2002 Owen Taylor <otaylor@redhat.com>
Some fixes for modal hint setting based on a patch
from Arvind Samptur (#100416)
* gtk/gtkdialog.c (gtk_dialog_run): Call gtk_window_set_modal
before showing the window for efficiency.
* gtk/gtkwindow.c (gtk_window_realize): Ignore the EWMH
constraint that the transient-for hint must always be
set on windows with the modal hint and just always set
the modal hint.
* gtk/gtkwindow.c (gtk_window_set_modal): Update the
modal hint on the GdkWindow when the window is realized.
Diffstat (limited to 'gtk/gtkdialog.c')
-rw-r--r-- | gtk/gtkdialog.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c index 213ff99d04..7f81f9d83d 100644 --- a/gtk/gtkdialog.c +++ b/gtk/gtkdialog.c @@ -944,13 +944,13 @@ gtk_dialog_run (GtkDialog *dialog) g_object_ref (dialog); - if (!GTK_WIDGET_VISIBLE (dialog)) - gtk_widget_show (GTK_WIDGET (dialog)); - was_modal = GTK_WINDOW (dialog)->modal; if (!was_modal) gtk_window_set_modal (GTK_WINDOW (dialog), TRUE); + if (!GTK_WIDGET_VISIBLE (dialog)) + gtk_widget_show (GTK_WIDGET (dialog)); + response_handler = g_signal_connect (dialog, "response", |