diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-10-27 04:15:01 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-10-27 04:15:01 +0800 |
commit | 04866901c3e69b6254aecb1a370ed87d2ef4491c (patch) | |
tree | f956734b80a7b4e1c72ed5466817f4cd7699007c /src/ephy-window.c | |
parent | d87cdef42b985761672186b11ba583fa871b4ef2 (diff) | |
download | gsoc2013-epiphany-04866901c3e69b6254aecb1a370ed87d2ef4491c.tar gsoc2013-epiphany-04866901c3e69b6254aecb1a370ed87d2ef4491c.tar.gz gsoc2013-epiphany-04866901c3e69b6254aecb1a370ed87d2ef4491c.tar.bz2 gsoc2013-epiphany-04866901c3e69b6254aecb1a370ed87d2ef4491c.tar.lz gsoc2013-epiphany-04866901c3e69b6254aecb1a370ed87d2ef4491c.tar.xz gsoc2013-epiphany-04866901c3e69b6254aecb1a370ed87d2ef4491c.tar.zst gsoc2013-epiphany-04866901c3e69b6254aecb1a370ed87d2ef4491c.zip |
Make the confirm-close-with-form-data dialogue window modal, instead of
2004-10-26 Christian Persch <chpe@cvs.gnome.org>
* src/ephy-window.c: (confirm_close_with_modified_forms):
Make the confirm-close-with-form-data dialogue window modal, instead
of app modal.
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r-- | src/ephy-window.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c index fc7a6aa37..02bfb8a8a 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -668,6 +668,7 @@ static gboolean confirm_close_with_modified_forms (EphyWindow *window) { GtkWidget *dialog; + GtkWindowGroup *group; int response; dialog = gtk_message_dialog_new @@ -690,6 +691,16 @@ confirm_close_with_modified_forms (EphyWindow *window) /* FIXME set title */ gtk_window_set_icon_name (GTK_WINDOW (dialog), "web-browser"); + group = GTK_WINDOW (window)->group; + if (group == NULL) + { + group = gtk_window_group_new (); + gtk_window_group_add_window (group, GTK_WINDOW (window)); + g_object_unref (group); + } + + gtk_window_group_add_window (group, GTK_WINDOW (dialog)); + response = gtk_dialog_run (GTK_DIALOG (dialog)); gtk_widget_destroy (dialog); |