addChild

open fun addChild(child: Widget, id: String): Boolean

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.

Return

true if @id was found and the widget added

Parameters

child

the GtkWidget to add

id

the ID to insert @child at