Method
Gtk.AppChooserButton.append_custom_item
Declaration [src]
void
gtk_app_chooser_button_append_custom_item (
GtkAppChooserButton* self,
const char* name,
const char* label,
GIcon* icon
)
Description [src]
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
GtkAppChooserButton::custom-item-activated
signal, to add a
callback for the activation of a particular custom item in the list.
Parameters
name |
const char* |
the name of the custom item |
|
Ownership is not transferred to the callee | |
The string is a NUL terminated UTF-8 string | |
label |
const char* |
the label for the custom item |
|
Ownership is not transferred to the callee | |
The string is a NUL terminated UTF-8 string | |
icon |
GIcon* |
the icon for the custom item |
|
Ownership is not transferred to the callee |