get_for_attach_widget

function get_for_attach_widget(widget:Gtk.Widget):[Gtk.Widget] {
    // Gjs wrapper for gtk_menu_get_for_attach_widget()
}

Returns a list of the menus which are attached to this widget. This list is owned by GTK+ and must not be modified.

Since 2.6

widget

a Gtk.Widget

Returns

the list of menus attached to his widget.