Gtk.MenuButton.prototype.set_menu_model
function set_menu_model(menu_model:Gio.MenuModel):void { // Gjs wrapper for gtk_menu_button_set_menu_model() }
Sets the Gio.MenuModel from which the Gtk.popup property will be filled in, or null to disable the button.
The Gtk.Menu will be created with Gtk.Menu.new_from_model, so actions will be connected as documented there.
If Gtk.popup is already set, then its content will be lost and replaced by our newly created Gtk.Menu.
Since 3.6
- menu_model