Gtk.AppChooserButton.prototype.append_custom_item
function append_custom_item(name:String, label:String, icon:Gio.Icon):void { // Gjs wrapper for gtk_app_chooser_button_append_custom_item() }
Appends a custom item to the list of applications that is shown in the popup; the item name must be unique per-widget. Clients can use the provided name as a detail for the Gtk.custom-item-activated signal, to add a callback for the activation of a particular custom item in the list. See also Gtk.append_separator.
Since 3.0
- name
the name of the custom item
- label
the label for the custom item
- icon
the icon for the custom item