aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-04-27 06:48:48 +0800
committerChristian Persch <chpe@src.gnome.org>2004-04-27 06:48:48 +0800
commit53d202b1bf2d0dc4305532c55c1e1fe5647df33a (patch)
treeaabaa04e3d0ef436dfe61512e01f77ea16b06045
parent9095136a9ea233cd541c30a83a6db127fc6d6235 (diff)
downloadgsoc2013-epiphany-53d202b1bf2d0dc4305532c55c1e1fe5647df33a.tar
gsoc2013-epiphany-53d202b1bf2d0dc4305532c55c1e1fe5647df33a.tar.gz
gsoc2013-epiphany-53d202b1bf2d0dc4305532c55c1e1fe5647df33a.tar.bz2
gsoc2013-epiphany-53d202b1bf2d0dc4305532c55c1e1fe5647df33a.tar.lz
gsoc2013-epiphany-53d202b1bf2d0dc4305532c55c1e1fe5647df33a.tar.xz
gsoc2013-epiphany-53d202b1bf2d0dc4305532c55c1e1fe5647df33a.tar.zst
gsoc2013-epiphany-53d202b1bf2d0dc4305532c55c1e1fe5647df33a.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 a3115e0a1..530695593 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 Marco Pesenti Gritti <marco@gnome.org>
* embed/mozilla/MozDownload.cpp:
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 87a293a5c..37a108d9b 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)
{