From e435a10d44dfed0705a5703b406c854a1208821e Mon Sep 17 00:00:00 2001 From: Diego Escalante Urrelo Date: Tue, 1 Sep 2009 00:05:36 -0500 Subject: ephy-web-view: use custom error pages Show nice error pages instead of WebKitGTK+'s defaults. Bug #592667 --- embed/ephy-web-view.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'embed/ephy-web-view.h') diff --git a/embed/ephy-web-view.h b/embed/ephy-web-view.h index f4e18a582..7b412bd74 100644 --- a/embed/ephy-web-view.h +++ b/embed/ephy-web-view.h @@ -86,6 +86,11 @@ typedef enum EPHY_WEB_VIEW_DOCUMENT_OTHER } EphyWebViewDocumentType; +typedef enum { + EPHY_WEB_VIEW_ERROR_PAGE_NETWORK_ERROR, + EPHY_WEB_VIEW_ERROR_PAGE_CRASH +} EphyWebViewErrorPage; + struct _EphyWebView { WebKitWebView parent; @@ -173,6 +178,11 @@ gboolean ephy_web_view_can_go_up (EphyWebView const char * ephy_web_view_get_address (EphyWebView *view); const char * ephy_web_view_get_title_composite (EphyWebView *view); +void ephy_web_view_load_error_page (EphyWebView *view, + const char *uri, + EphyWebViewErrorPage page, + GError *error); + /* These should be private */ void ephy_web_view_set_address (EphyWebView *view, -- cgit