diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-04-27 06:47:22 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-04-27 06:47:22 +0800 |
commit | f15eb1f6c9b00f8a3f2797d558c4a8cef4cc46d1 (patch) | |
tree | e65f70ae657078ab0ccc7188ce54220c26f3c837 | |
parent | 015d90d944be8ca0cec37986f3fc84510f71ab59 (diff) | |
download | gsoc2013-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-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/ephy-window.c | 13 |
2 files changed, 20 insertions, 0 deletions
@@ -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) { |