Function

Cog.handle_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.

 Ownership is not transferred to the callee
reason WebKitWebProcessTerminationReason
 

Cause for process termination.

userdata void*
 

Integer to use as exit status packed as a pointer.

 Can be NULL
 Ownership is not transferred to the callee

Return value

Returns: gboolean
No description available.