From 04866901c3e69b6254aecb1a370ed87d2ef4491c Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Tue, 26 Oct 2004 20:15:01 +0000 Subject: Make the confirm-close-with-form-data dialogue window modal, instead of 2004-10-26 Christian Persch * src/ephy-window.c: (confirm_close_with_modified_forms): Make the confirm-close-with-form-data dialogue window modal, instead of app modal. --- ChangeLog | 7 +++++++ src/ephy-window.c | 11 +++++++++++ 2 files changed, 18 insertions(+) diff --git a/ChangeLog b/ChangeLog index 60db8d679..f3cf14dda 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-10-26 Christian Persch + + * src/ephy-window.c: (confirm_close_with_modified_forms): + + Make the confirm-close-with-form-data dialogue window modal, instead + of app modal. + 2004-10-26 Christian Persch * src/ephy-session.c: (offer_to_resume): 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); -- cgit v1.2.3