AppleOpenSource/WebKit2-7609.3.5.1.3/UIProcess/API/gtk/WebKitPrintCustomWidget.cpp
/**
 * webkit_print_custom_widget_new:
 * @widget: a #GtkWidget
 * @title: a @widget's title
 *
 * Create a new #WebKitPrintCustomWidget with given @widget and @title. The @widget
 * ownership is taken and it is destroyed together with the dialog even if this
 * object could still be alive at that point. You typically want to pass a container
 * widget with multiple widgets in it.
 *
 * Returns: (transfer full): a new #WebKitPrintOperation.
 *
 * Since: 2.16
 */
@widget: a #GtkWidget
@title: a @widget's title

Create a new #WebKitPrintCustomWidget with given @widget and @title. The @widget
ownership is taken and it is destroyed together with the dialog even if this
object could still be alive at that point. You typically want to pass a container
widget with multiple widgets in it.

(transfer full): a new #WebKitPrintOperation.


@widget : a #GtkWidget @title : a @widget ' s title Create a new #WebKitPrintCustomWidget with given @widget and @title . The @widget ownership is taken and it is destroyed together with the dialog even if this object could still be alive at that point . You typically want to pass a container widget with multiple widgets in it . ( transfer full ) : a new #WebKitPrintOperation .
WebKitPrintCustomWidget* webkit_print_custom_widget_new(GtkWidget* widget, const char* title)
{
    g_return_val_if_fail(GTK_IS_WIDGET(widget), nullptr);
    g_return_val_if_fail(title, nullptr);
    return WEBKIT_PRINT_CUSTOM_WIDGET(g_object_new(WEBKIT_TYPE_PRINT_CUSTOM_WIDGET, "widget", widget, "title", title, nullptr));
}
WebKitPrintCustomWidget * webkit_print_custom_widget_new ( GtkWidget * widget , const char * title ) { g_return_val_if_fail ( GTK_IS_WIDGET ( widget ) , nullptr ) ; g_return_val_if_fail ( title , nullptr ) ; return WEBKIT_PRINT_CUSTOM_WIDGET ( g_object_new ( WEBKIT_TYPE_PRINT_CUSTOM_WIDGET , " " , widget , " " , title , nullptr ) ) ; }
webkit_print_custom_widget_new:
 @widget: a #GtkWidget
 @title: a @widget's title
webkit_print_custom_widget_new : @widget : a #GtkWidget @title : a @widget ' s title