Gtk.AppChooserWidget::populate-popup

function callback(app_chooser_widget, menu:Gtk.Menu, application:Gio.AppInfo, ):void;

Emitted when a context menu is about to popup over an application item. Clients can insert menu items into the provided Gtk.Menu object in the callback of this signal; the context menu will be shown over the item if at least one item has been added to the menu.

app_chooser_widget

instance of Gtk.AppChooserWidget that is emitting the signal

menu

the Gtk.Menu to populate

application

the current Gio.AppInfo