aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJose Millan Soto <jmillan@igalia.com>2010-02-20 01:35:51 +0800
committerXan Lopez <xan@gnome.org>2010-04-07 16:40:43 +0800
commit21250dde74250883831a107821bb23fc0232e160 (patch)
treeb0cb8e704334fde3395825e3f80d12900a30b492 /src
parent29a826d202b0557c652b237b0b91a59ad4b2e371 (diff)
downloadgsoc2013-epiphany-21250dde74250883831a107821bb23fc0232e160.tar
gsoc2013-epiphany-21250dde74250883831a107821bb23fc0232e160.tar.gz
gsoc2013-epiphany-21250dde74250883831a107821bb23fc0232e160.tar.bz2
gsoc2013-epiphany-21250dde74250883831a107821bb23fc0232e160.tar.lz
gsoc2013-epiphany-21250dde74250883831a107821bb23fc0232e160.tar.xz
gsoc2013-epiphany-21250dde74250883831a107821bb23fc0232e160.tar.zst
gsoc2013-epiphany-21250dde74250883831a107821bb23fc0232e160.zip
Improve page print implementation
Use the already existing functions we have for print preview also for printing; fixes a bunch of usability issues. Bug #609756 Signed-off-by: Xan Lopez <xan@gnome.org>
Diffstat (limited to 'src')
-rw-r--r--src/window-commands.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/window-commands.c b/src/window-commands.c
index b93c04639..847339946 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -102,12 +102,14 @@ window_cmd_file_print (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));
+ view = ephy_embed_get_web_view (embed);
- webkit_web_view_execute_script (EPHY_GET_WEBKIT_WEB_VIEW_FROM_EMBED (embed), "print();");
+ ephy_web_view_print (view);
}
void