Gtk.MenuButton.new

function new():Gtk.Widget {
    // Gjs wrapper for gtk_menu_button_new()
}

Creates a new Gtk.MenuButton widget with downwards-pointing arrow as the only child. You can replace the child widget with another Gtk.Widget should you wish to.

Since 3.6

Returns

The newly created Gtk.MenuButton widget.