From 9dd27664308a8dcd007d3ff17b55b7f5c93cdf62 Mon Sep 17 00:00:00 2001 From: Jose Millan Soto Date: Mon, 8 Feb 2010 18:58:53 +0100 Subject: Implemented print preview Created function ephy_web_view_show_print_preview, which replaces the old implementation of print preview, which was not working now. Preview is displayed in an external viewer, so print preview mode does no longer exist. All functions of the old implementation of print preview have been removed, PPViewToolbar was removed also. Also, as EphyWebView has no more a print preview mode, all functions which checked if a view was in print preview mode were modified. Bug #609021 --- src/window-commands.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/window-commands.c') diff --git a/src/window-commands.c b/src/window-commands.c index bcd1c902c..2615d7819 100644 --- a/src/window-commands.c +++ b/src/window-commands.c @@ -89,13 +89,12 @@ window_cmd_file_print_preview (GtkAction *action, EphyWindow *window) { EphyEmbed *embed; + EphyWebView *view; embed = ephy_embed_container_get_active_child - (EPHY_EMBED_CONTAINER (window)); - g_return_if_fail (EPHY_IS_EMBED (embed)); - - ephy_web_view_set_print_preview_mode (ephy_embed_get_web_view (embed), TRUE); - _ephy_window_set_print_preview (window, TRUE); + (EPHY_EMBED_CONTAINER (window)); + view = ephy_embed_get_web_view (embed); + ephy_web_view_show_print_preview (view); } void -- cgit v1.2.3