Gtk.Plug.new

function new(socket_id:xlib.Window):Gtk.Widget {
    // Gjs wrapper for gtk_plug_new()
}

Creates a new plug widget inside the Gtk.Socket identified by socket_id. If socket_id is 0, the plug is left "unplugged" and can later be plugged into a Gtk.Socket by Gtk.add_id.

socket_id

the window ID of the socket, or 0.

Returns

the new Gtk.Plug widget.