Gtk.PopoverMenuBar.add_child

### Method

# Gtk PopoverMenuBaradd_child

#### Declaration [src]

    gboolean
    gtk_popover_menu_bar_add_child (
      GtkPopoverMenuBar* bar,
      GtkWidget* child,
      const char* id
    )

#### Description [src]

Adds a custom widget to a generated menubar.

For this to work, the menu model of `bar` must have an item with a `custom` attribute that matches `id`.

#### Parameters

`child` | `GtkWidget`
| The `GtkWidget` to add.
| The data is owned by the caller of the function.
`id` | `const char*`
| The ID to insert `child` at.
| The data is owned by the caller of the function.
| The value is a NUL terminated UTF-8 string.

#### Return value

Returns: | `gboolean`
| `TRUE` if `id` was found and the widget added.