Gtk.Notebook.prototype.set_action_widget

function set_action_widget(widget:Gtk.Widget, pack_type:Gtk.PackType):void {
    // Gjs wrapper for gtk_notebook_set_action_widget()
}

Sets widget as one of the action widgets. Depending on the pack type the widget will be placed before or after the tabs. You can use a Gtk.Box if you need to pack more than one widget on the same side.

Note that action widgets are "internal" children of the notebook and thus not included in the list returned from Gtk.Container.prototype.foreach.

Since 2.20

widget

a Gtk.Widget

pack_type

pack type of the action widget