diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/ephy-window.c | 11 |
2 files changed, 18 insertions, 0 deletions
@@ -1,5 +1,12 @@ 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. + +2004-10-26 Christian Persch <chpe@cvs.gnome.org> + * src/ephy-session.c: (offer_to_resume): Make the crash revovery dialogue GTK_MESSAGE_QUESTION instead of 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); |