Package org.gnome.gtk

Class AppChooserButton

java.lang.Object
All Implemented Interfaces:
Proxy, Accessible, AppChooser, Buildable, ConstraintTarget

@Generated("io.github.jwharm.JavaGI") @Deprecated public class AppChooserButton extends Widget implements Accessible, AppChooser, Buildable, ConstraintTarget
Deprecated.
The GtkAppChooserButton lets the user select an application.

An example GtkAppChooserButton

Initially, a GtkAppChooserButton selects the first application in its list, which will either be the most-recently used application or, if Gtk.AppChooserButton:show-default-item is true, the default application.

The list of applications shown in a GtkAppChooserButton includes the recommended applications for the given content type. When Gtk.AppChooserButton:show-default-item is set, the default application is also included. To let the user chooser other applications, you can set the Gtk.AppChooserButton:show-dialog-item property, which allows to open a full AppChooserDialog.

It is possible to add custom items to the list, using appendCustomItem(java.lang.String, java.lang.String, org.gnome.gio.Icon). These items cause the Gtk.AppChooserButton::custom-item-activated signal to be emitted when they are selected.

To track changes in the selected application, use the Gtk.AppChooserButton::changed signal.

CSS nodes
GtkAppChooserButton has a single CSS node with the name “appchooserbutton”.