aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/epiphany.defs6
-rw-r--r--src/window-commands.c2
2 files changed, 1 insertions, 7 deletions
diff --git a/src/epiphany.defs b/src/epiphany.defs
index b4b1da526..682dc8c54 100644
--- a/src/epiphany.defs
+++ b/src/epiphany.defs
@@ -1198,12 +1198,6 @@
)
)
-(define-method print
- (of-object "EphyEmbed")
- (c-name "ephy_embed_print")
- (return-type "none")
-)
-
(define-method set_print_preview_mode
(of-object "EphyEmbed")
(c-name "ephy_embed_set_print_preview_mode")
diff --git a/src/window-commands.c b/src/window-commands.c
index de5c9ec40..1609ed0b8 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -109,7 +109,7 @@ window_cmd_file_print (GtkAction *action,
(EPHY_EMBED_CONTAINER (window));
g_return_if_fail (EPHY_IS_EMBED (embed));
- ephy_embed_print (embed);
+ webkit_web_view_execute_script (EPHY_GET_WEBKIT_WEB_VIEW_FROM_EMBED (embed), "print();");
}
void