Adw.ViewStack.add_titled_with_icon

### Method

# Adw ViewStackadd_titled_with_icon

since: 1.2

#### Declaration [src]

    AdwViewStackPage*
    adw_view_stack_add_titled_with_icon (
      AdwViewStack* self,
      GtkWidget* child,
      const char* name,
      const char* title,
      const char* icon_name
    )

#### Description [src]

Adds a child to `self`.

The child is identified by the `name`. The `title` and `icon_name` will be used by `AdwViewSwitcher` to represent `child`.

Available since: 1.2

#### Parameters

`child`

  Type: `GtkWidget`

  The widget to add.

  The data is owned by the caller of the function.

`name`

  Type: `const char*`

  The name for `child`.

  The argument can be `NULL`.
  The data is owned by the caller of the function.
  The value is a NUL terminated UTF-8 string.

`title`

  Type: `const char*`

  A human-readable title for `child`.

  The data is owned by the caller of the function.
  The value is a NUL terminated UTF-8 string.

`icon_name`

  Type: `const char*`

  An icon name for `child`.

  The data is owned by the caller of the function.
  The value is a NUL terminated UTF-8 string.

#### Return value

Type: `AdwViewStackPage`

The `AdwViewStackPage` for `child`.

The data is owned by the instance.