aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-04-27 06:47:22 +0800
committerChristian Persch <chpe@src.gnome.org>2004-04-27 06:47:22 +0800
commitf15eb1f6c9b00f8a3f2797d558c4a8cef4cc46d1 (patch)
treee65f70ae657078ab0ccc7188ce54220c26f3c837
parent015d90d944be8ca0cec37986f3fc84510f71ab59 (diff)
downloadgsoc2013-epiphany-f15eb1f6c9b00f8a3f2797d558c4a8cef4cc46d1.tar
gsoc2013-epiphany-f15eb1f6c9b00f8a3f2797d558c4a8cef4cc46d1.tar.gz
gsoc2013-epiphany-f15eb1f6c9b00f8a3f2797d558c4a8cef4cc46d1.tar.bz2
gsoc2013-epiphany-f15eb1f6c9b00f8a3f2797d558c4a8cef4cc46d1.tar.lz
gsoc2013-epiphany-f15eb1f6c9b00f8a3f2797d558c4a8cef4cc46d1.tar.xz
gsoc2013-epiphany-f15eb1f6c9b00f8a3f2797d558c4a8cef4cc46d1.tar.zst
gsoc2013-epiphany-f15eb1f6c9b00f8a3f2797d558c4a8cef4cc46d1.zip
Exit print preview mode before closing a window. Fixes a crasher; Epiphany
2004-04-27 Christian Persch <chpe@cvs.gnome.org> * src/ephy-window.c: (ephy_window_delete_event_cb): Exit print preview mode before closing a window. Fixes a crasher; Epiphany equivalent of galeon bug #121298.
-rw-r--r--ChangeLog7
-rw-r--r--src/ephy-window.c13
2 files changed, 20 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index fd8fbec20..1ddc46fe5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2004-04-27 Christian Persch <chpe@cvs.gnome.org>
+
+ * src/ephy-window.c: (ephy_window_delete_event_cb):
+
+ Exit print preview mode before closing a window. Fixes a crasher;
+ Epiphany equivalent of galeon bug #121298.
+
2004-04-26 Christian Persch <chpe@cvs.gnome.org>
* NEWS:
diff --git a/src/ephy-window.c b/src/ephy-window.c
index cfa6bad59..446aa210d 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -667,6 +667,19 @@ ephy_window_delete_event_cb (GtkWidget *widget, GdkEvent *event, EphyWindow *win
GList *tabs, *l;
gboolean modified = FALSE;
+ /* Workaround a crash when closing a window while in print preview mode. See
+ * mozilla bug #241809
+ */
+ if (window->priv->mode == EPHY_WINDOW_MODE_PRINT_PREVIEW)
+ {
+ EphyEmbed *embed;
+
+ embed = ephy_window_get_active_embed (window);
+ ephy_embed_print_preview_close (embed);
+
+ ephy_window_set_print_preview (window, FALSE);
+ }
+
tabs = ephy_window_get_tabs (window);
for (l = tabs; l != NULL; l = l->next)
{