aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/reference/tmpl/ephy-embed.sgml1
-rw-r--r--embed/ephy-embed.c13
-rw-r--r--embed/ephy-embed.h3
-rw-r--r--embed/webkit/webkit-embed.c7
-rw-r--r--src/ephy-window.c2
-rw-r--r--src/epiphany.defs6
6 files changed, 1 insertions, 31 deletions
diff --git a/doc/reference/tmpl/ephy-embed.sgml b/doc/reference/tmpl/ephy-embed.sgml
index 268c8fa23..7ca391b43 100644
--- a/doc/reference/tmpl/ephy-embed.sgml
+++ b/doc/reference/tmpl/ephy-embed.sgml
@@ -302,7 +302,6 @@ be done by casting).
@print_preview_n_pages:
@print_preview_navigate:
@has_modified_forms:
-@close:
@get_document_type:
@get_load_percent:
@get_load_status:
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index 71db600b2..2dec24864 100644
--- a/embed/ephy-embed.c
+++ b/embed/ephy-embed.c
@@ -610,19 +610,6 @@ ephy_embed_show_page_certificate (EphyEmbed *embed)
}
/**
- * ephy_embed_close:
- * @embed: an #EphyEmbed
- *
- * Closes the @embed
- **/
-void
-ephy_embed_close (EphyEmbed *embed)
-{
- EphyEmbedIface *iface = EPHY_EMBED_GET_IFACE (embed);
- iface->close (embed);
-}
-
-/**
* ephy_embed_set_encoding:
* @embed: an #EphyEmbed
* @encoding: the desired encoding
diff --git a/embed/ephy-embed.h b/embed/ephy-embed.h
index b419cea96..6d85bf93b 100644
--- a/embed/ephy-embed.h
+++ b/embed/ephy-embed.h
@@ -202,7 +202,6 @@ struct _EphyEmbedIface
EphyEmbedPrintPreviewNavType type,
int page);
gboolean (* has_modified_forms) (EphyEmbed *embed);
- void (* close) (EphyEmbed *embed);
EphyEmbedDocumentType (* get_document_type) (EphyEmbed *embed);
int (* get_load_percent) (EphyEmbed *embed);
gboolean (* get_load_status) (EphyEmbed *embed);
@@ -331,8 +330,6 @@ void ephy_embed_print_preview_navigate (EphyEmbed *embed,
int page);
/* Misc. utility */
-void ephy_embed_close (EphyEmbed *embed);
-
gboolean ephy_embed_has_modified_forms (EphyEmbed *embed);
G_END_DECLS
diff --git a/embed/webkit/webkit-embed.c b/embed/webkit/webkit-embed.c
index 15fd046fb..4712a9489 100644
--- a/embed/webkit/webkit-embed.c
+++ b/embed/webkit/webkit-embed.c
@@ -108,12 +108,6 @@ G_DEFINE_TYPE_WITH_CODE (WebKitEmbed, webkit_embed, EPHY_TYPE_BASE_EMBED,
ephy_command_manager_iface_init))
static void
-impl_close (EphyEmbed *embed)
-{
- gtk_widget_destroy (GTK_WIDGET (embed));
-}
-
-static void
webkit_embed_title_changed_cb (WebKitWebView *web_view,
WebKitWebFrame *web_frame,
const gchar *title,
@@ -523,7 +517,6 @@ ephy_embed_iface_init (EphyEmbedIface *iface)
iface->scroll_pixels = impl_scroll_pixels;
iface->shistory_copy = impl_shistory_copy;
iface->show_page_certificate = impl_show_page_certificate;
- iface->close = impl_close;
iface->set_encoding = impl_set_encoding;
iface->get_encoding = impl_get_encoding;
iface->has_automatic_encoding = impl_has_automatic_encoding;
diff --git a/src/ephy-window.c b/src/ephy-window.c
index ad31d1682..8fe31d1fd 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -2830,7 +2830,7 @@ notebook_page_close_request_cb (EphyNotebook *notebook,
if (!ephy_embed_has_modified_forms (embed) ||
confirm_close_with_modified_forms (window))
{
- ephy_embed_close (embed);
+ gtk_widget_destroy (GTK_WIDGET (embed));
}
}
diff --git a/src/epiphany.defs b/src/epiphany.defs
index 133440830..532f91405 100644
--- a/src/epiphany.defs
+++ b/src/epiphany.defs
@@ -1208,12 +1208,6 @@
)
)
-(define-method close
- (of-object "EphyEmbed")
- (c-name "ephy_embed_close")
- (return-type "none")
-)
-
(define-method has_modified_forms
(of-object "EphyEmbed")
(c-name "ephy_embed_has_modified_forms")