From c5f616f5c4e904d4fc57f49290952db3cd8a68d8 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Wed, 2 Jul 2008 19:25:25 +0000 Subject: embed: remove ephy_embed_close. Just destroy the embed widget. svn path=/trunk/; revision=8332 --- embed/ephy-embed.c | 13 ------------- embed/ephy-embed.h | 3 --- embed/webkit/webkit-embed.c | 7 ------- 3 files changed, 23 deletions(-) (limited to 'embed') 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 @@ -609,19 +609,6 @@ ephy_embed_show_page_certificate (EphyEmbed *embed) iface->show_page_certificate (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 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 @@ -107,12 +107,6 @@ G_DEFINE_TYPE_WITH_CODE (WebKitEmbed, webkit_embed, EPHY_TYPE_BASE_EMBED, G_IMPLEMENT_INTERFACE (EPHY_TYPE_COMMAND_MANAGER, 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, @@ -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; -- cgit v1.2.3