Function

Cog.handle_web_view_web_process_terminated

Declaration [src]

gboolean
cog_handle_web_view_web_process_terminated (
  WebKitWebView* web_view,
  WebKitWebProcessTerminationReason reason,
  void* userdata
)

Description [src]

Handles unexpected web process termination, showing a simple error page and logging a message to the standard error output.

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

WebKitWebView* web_view = webkit_web_view_new(...);
g_signal_connect(web_view, "web-process-terminated",
                 G_CALLBACK(cog_handle_web_view_web_process_terminated),
                 NULL);

Parameters

web_view WebKitWebView*
 

A WebKit.WebView.

 Ownership is not transferred to the callee
reason WebKitWebProcessTerminationReason
 

Cause for process termination.

userdata void*
 

User data.

 Can be NULL
 Ownership is not transferred to the callee

Return value

Returns: gboolean
No description available.