diff options
author | Xan Lopez <xan@src.gnome.org> | 2008-07-03 03:25:25 +0800 |
---|---|---|
committer | Xan Lopez <xan@src.gnome.org> | 2008-07-03 03:25:25 +0800 |
commit | c5f616f5c4e904d4fc57f49290952db3cd8a68d8 (patch) | |
tree | 3a27ccfe880f1adcb30aa932665ebe4810b18b06 | |
parent | 1a2c45a09867791d52cd74b280395dd646162523 (diff) | |
download | gsoc2013-epiphany-c5f616f5c4e904d4fc57f49290952db3cd8a68d8.tar gsoc2013-epiphany-c5f616f5c4e904d4fc57f49290952db3cd8a68d8.tar.gz gsoc2013-epiphany-c5f616f5c4e904d4fc57f49290952db3cd8a68d8.tar.bz2 gsoc2013-epiphany-c5f616f5c4e904d4fc57f49290952db3cd8a68d8.tar.lz gsoc2013-epiphany-c5f616f5c4e904d4fc57f49290952db3cd8a68d8.tar.xz gsoc2013-epiphany-c5f616f5c4e904d4fc57f49290952db3cd8a68d8.tar.zst gsoc2013-epiphany-c5f616f5c4e904d4fc57f49290952db3cd8a68d8.zip |
embed: remove ephy_embed_close.
Just destroy the embed widget.
svn path=/trunk/; revision=8332
-rw-r--r-- | doc/reference/tmpl/ephy-embed.sgml | 1 | ||||
-rw-r--r-- | embed/ephy-embed.c | 13 | ||||
-rw-r--r-- | embed/ephy-embed.h | 3 | ||||
-rw-r--r-- | embed/webkit/webkit-embed.c | 7 | ||||
-rw-r--r-- | src/ephy-window.c | 2 | ||||
-rw-r--r-- | src/epiphany.defs | 6 |
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") |