aboutsummaryrefslogtreecommitdiffstats
path: root/src/window-commands.c
diff options
context:
space:
mode:
authorJose Millan Soto <jmillan@igalia.com>2010-02-09 01:58:53 +0800
committerXan Lopez <xan@gnome.org>2010-02-09 04:37:35 +0800
commit9dd27664308a8dcd007d3ff17b55b7f5c93cdf62 (patch)
tree8a0cffada5ed97bfadbc18d6809d0d41180dd7b0 /src/window-commands.c
parent4d62a3fca6eaab2d1f8c0af29f230012f99a4dd1 (diff)
downloadgsoc2013-epiphany-9dd27664308a8dcd007d3ff17b55b7f5c93cdf62.tar
gsoc2013-epiphany-9dd27664308a8dcd007d3ff17b55b7f5c93cdf62.tar.gz
gsoc2013-epiphany-9dd27664308a8dcd007d3ff17b55b7f5c93cdf62.tar.bz2
gsoc2013-epiphany-9dd27664308a8dcd007d3ff17b55b7f5c93cdf62.tar.lz
gsoc2013-epiphany-9dd27664308a8dcd007d3ff17b55b7f5c93cdf62.tar.xz
gsoc2013-epiphany-9dd27664308a8dcd007d3ff17b55b7f5c93cdf62.tar.zst
gsoc2013-epiphany-9dd27664308a8dcd007d3ff17b55b7f5c93cdf62.zip
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
Diffstat (limited to 'src/window-commands.c')
-rw-r--r--src/window-commands.c9
1 files changed, 4 insertions, 5 deletions
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