Function

Coghandle_web_view_web_process_terminated_exit

Declaration [src]

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

Description [src]

Handles unexpected web process termination, exiting the program with the value passed as userdata as status.

This function is typically used as a callback for the WebKit.WebView::web-process-terminated-signal:

WebKitWebView* web_view = webkit_web_view_new(...);
g_signal_connect(web_view, "web-process-terminated",
                 G_CALLBACK(cog_handle_web_view_web_process_terminated_exit),
                 GINT_TO_POINTER(EXIT_FAILURE));

Parameters

web_view WebKitWebView*
 

A WebKit.WebView.

 The data is owned by the caller of the function.
reason WebKitWebProcessTerminationReason
 

Cause for process termination.

userdata void*
 

Integer to use as exit status packed as a pointer.

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

Return value

Returns: gboolean
  No description available.