aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2008-06-30 02:16:16 +0800
committerXan Lopez <xan@src.gnome.org>2008-06-30 02:16:16 +0800
commit8cad69642ad84471f9c80b47cba5ec3697a4e56a (patch)
tree6d6e94c879ba349dee25e088e8bdfddf6e977dac /embed
parent69481e1a7b0835dcc595320af2195fe4c8c35fb3 (diff)
downloadgsoc2013-epiphany-8cad69642ad84471f9c80b47cba5ec3697a4e56a.tar
gsoc2013-epiphany-8cad69642ad84471f9c80b47cba5ec3697a4e56a.tar.gz
gsoc2013-epiphany-8cad69642ad84471f9c80b47cba5ec3697a4e56a.tar.bz2
gsoc2013-epiphany-8cad69642ad84471f9c80b47cba5ec3697a4e56a.tar.lz
gsoc2013-epiphany-8cad69642ad84471f9c80b47cba5ec3697a4e56a.tar.xz
gsoc2013-epiphany-8cad69642ad84471f9c80b47cba5ec3697a4e56a.tar.zst
gsoc2013-epiphany-8cad69642ad84471f9c80b47cba5ec3697a4e56a.zip
embed: remove ephy_embed_print.
And use the WebKit API directly. svn path=/trunk/; revision=8309
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-embed.c14
-rw-r--r--embed/ephy-embed.h3
-rw-r--r--embed/webkit/webkit-embed.c7
3 files changed, 0 insertions, 24 deletions
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index f6bc66987..29d7a0859 100644
--- a/embed/ephy-embed.c
+++ b/embed/ephy-embed.c
@@ -724,20 +724,6 @@ ephy_embed_has_automatic_encoding (EphyEmbed *embed)
}
/**
- * ephy_embed_print:
- * @embed: an #EphyEmbed
- *
- * Sends a document to the printer.
- *
- **/
-void
-ephy_embed_print (EphyEmbed *embed)
-{
- EphyEmbedIface *iface = EPHY_EMBED_GET_IFACE (embed);
- iface->print (embed);
-}
-
-/**
* ephy_embed_set_print_preview_mode:
* @embed: an #EphyEmbed
* @preview_mode: Whether the print preview mode is enabled.
diff --git a/embed/ephy-embed.h b/embed/ephy-embed.h
index 2dddb985d..ec8b4db65 100644
--- a/embed/ephy-embed.h
+++ b/embed/ephy-embed.h
@@ -201,7 +201,6 @@ struct _EphyEmbedIface
gboolean (* has_automatic_encoding) (EphyEmbed *embed);
void (* set_encoding) (EphyEmbed *embed,
const char *encoding);
- void (* print) (EphyEmbed *embed);
void (* set_print_preview_mode) (EphyEmbed *embed,
gboolean mode);
int (* print_preview_n_pages) (EphyEmbed *embed);
@@ -340,8 +339,6 @@ void ephy_embed_set_encoding (EphyEmbed *embed,
const char *encoding);
/* Print */
-void ephy_embed_print (EphyEmbed *embed);
-
void ephy_embed_set_print_preview_mode (EphyEmbed *embed,
gboolean preview_mode);
diff --git a/embed/webkit/webkit-embed.c b/embed/webkit/webkit-embed.c
index 304273412..7e48c56c2 100644
--- a/embed/webkit/webkit-embed.c
+++ b/embed/webkit/webkit-embed.c
@@ -465,12 +465,6 @@ impl_show_page_certificate (EphyEmbed *embed)
}
static void
-impl_print (EphyEmbed *embed)
-{
- webkit_web_view_execute_script (WEBKIT_EMBED (embed)->priv->web_view, "print();");
-}
-
-static void
impl_set_print_preview_mode (EphyEmbed *embed, gboolean preview_mode)
{
}
@@ -570,7 +564,6 @@ ephy_embed_iface_init (EphyEmbedIface *iface)
iface->set_encoding = impl_set_encoding;
iface->get_encoding = impl_get_encoding;
iface->has_automatic_encoding = impl_has_automatic_encoding;
- iface->print = impl_print;
iface->set_print_preview_mode = impl_set_print_preview_mode;
iface->print_preview_n_pages = impl_print_preview_n_pages;
iface->print_preview_navigate = impl_print_preview_navigate;