Function

Coghandle_web_view_load_failed

Declaration [src]

gboolean
cog_handle_web_view_load_failed (
  WebKitWebView* web_view,
  WebKitLoadEvent load_event,
  char* failing_uri,
  GError* error,
  void* userdata
)

Description [src]

Handles page load errors, showing a simple error page if needed and logging a message to the standard error output.

This function is typically used in a callback that handles the WebKit.WebView::load-failed signal, and can be used directly as a callback for it:

WebKitWebView* web_view = webkit_web_view_new(...);
g_signal_connect(web_view, "load-failed",
                 G_CALLBACK(cog_handle_web_view_load_failed), NULL);
This function is not directly available to language bindings

Parameters

web_view WebKitWebView*
 

A WebKit.WebView.

 The data is owned by the caller of the function.
load_event WebKitLoadEvent
 

Load event.

failing_uri char*
 

URI that failed to load.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
error GError
 

Load error.

 The data is owned by the caller of the function.
userdata void*
 

User data.

 The argument can be NULL.
 The data is owned by the caller of the function.

Return value

Returns: gboolean
 

Whether other signal handlers should be skipped.