Method

GtkAppChooserButtonappend_custom_item

since: 3.0

Declaration [src]

void
gtk_app_chooser_button_append_custom_item (
  GtkAppChooserButton* self,
  const gchar* name,
  const gchar* 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. See also gtk_app_chooser_button_append_separator().

Available since: 3.0

Parameters

name

Type: const gchar*

The name of the custom item.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
label

Type: const gchar*

The label for the custom item.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
icon

Type: GIcon

The icon for the custom item.

The data is owned by the caller of the method.