Method

Gtk.PopoverMenu.add_child

Declaration [src]

gboolean
gtk_popover_menu_add_child (
  GtkPopoverMenu* popover,
  GtkWidget* child,
  const char* id
)

Description [src]

Adds a custom widget to a generated menu.

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

Parameters

child GtkWidget
 

the GtkWidget to add

 Ownership is not transferred to the callee
id const char*
 

the ID to insert child at

 Ownership is not transferred to the callee
 The string is a NUL terminated UTF-8 string

Return value

Returns: gboolean

TRUE if id was found and the widget added