The title of the custom widget.: WebKitGTK Reference Manual

## The title of the custom widget. The title of the custom widget. — Allows to embed a custom widget in print dialog |

## Functions

WebKitPrintCustomWidget * | webkit_print_custom_widget_new ()
GtkWidget * | webkit_print_custom_widget_get_widget ()
const gchar * | webkit_print_custom_widget_get_title ()

## Properties

char * | title | Read / Write / Construct Only
GtkWidget * | widget | Read / Write / Construct Only

## Signals

void | apply | Run Last
void | update | Run Last

## Types and Values

struct | WebKitPrintCustomWidget

## Object Hierarchy

        GObject
        ╰── WebKitPrintCustomWidget

## Description

A WebKitPrintCustomWidget allows to embed a custom widget in the print dialog by connecting to the “create-custom-widget” signal, creating a new WebKitPrintCustomWidget with `webkit_print_custom_widget_new()` and returning it from there. You can later use `webkit_print_operation_run_dialog()` to display the dialog.

## Functions

### webkit_print_custom_widget_new ()

    WebKitPrintCustomWidget *
    webkit_print_custom_widget_new (GtkWidget *widget,
                                    const char *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.

#### Parameters

widget | a GtkWidget |
title | a `widget` 's title |

#### Returns

a new WebKitPrintOperation.

[transfer full]

Since: 2.16

### webkit_print_custom_widget_get_widget ()

    GtkWidget *
    webkit_print_custom_widget_get_widget (WebKitPrintCustomWidget *print_custom_widget);

Return the value of “widget” property for the given `print_custom_widget` object. The returned value will always be valid if called from “apply” or “update” callbacks, but it will be `NULL` if called after the “apply” signal is emitted.

#### Parameters

print_custom_widget | a WebKitPrintCustomWidget |

#### Returns

a GtkWidget.

[transfer none]

Since: 2.16

### webkit_print_custom_widget_get_title ()

    const gchar *
    webkit_print_custom_widget_get_title (WebKitPrintCustomWidget *print_custom_widget);

Return the value of “title” property for the given `print_custom_widget` object.

#### Parameters

print_custom_widget | a WebKitPrintCustomWidget |

#### Returns

Title of the `print_custom_widget` .

Since: 2.16

## Types and Values

### struct WebKitPrintCustomWidget

    struct WebKitPrintCustomWidget;

## Property Details

### The `“title”` property

      “title”                    char *

The title of the custom widget.

Owner: WebKitPrintCustomWidget

Flags: Read / Write / Construct Only

Default value: NULL

Since: 2.16

### The `“widget”` property

      “widget”                   GtkWidget *

The custom GtkWidget that will be embedded in the dialog.

Owner: WebKitPrintCustomWidget

Flags: Read / Write / Construct Only

Since: 2.16

## Signal Details

### The `“apply”` signal

    void
    user_function (WebKitPrintCustomWidget *print_custom_widget,
                   gpointer                 user_data)

Emitted right before the printing will start. You should read the information from the widget and update the content based on it if necessary. The widget is not guaranteed to be valid at a later time.

#### Parameters

print_custom_widget | the WebKitPrintCustomWidget on which the signal was emitted |
user_data | user data set when the signal handler was connected. |

Flags: Run Last

Since: 2.16

### The `“update”` signal

    void
    user_function (WebKitPrintCustomWidget *print_custom_widget,
                   GtkPageSetup            *page_setup,
                   GtkPrintSettings        *print_settings,
                   gpointer                 user_data)

Emitted after change of selected printer in the dialog. The actual page setup and print settings are available and the custom widget can actualize itself according to their values.

#### Parameters

print_custom_widget | the WebKitPrintCustomWidget on which the signal was emitted |
page_setup | actual page setup |
print_settings | actual print settings |
user_data | user data set when the signal handler was connected. |

Flags: Run Last

Since: 2.16

## See Also

WebKitPrintOperation