AppChooserButton


Object Hierarchy:

Gtk.AppChooserButton Gtk.AppChooserButton Gtk.AppChooserButton Gtk.Widget Gtk.Widget Gtk.Widget->Gtk.AppChooserButton GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Gtk.Accessible Gtk.Accessible Gtk.Accessible->Gtk.AppChooserButton Gtk.Accessible->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Gtk.AppChooserButton Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget Gtk.ConstraintTarget Gtk.ConstraintTarget->Gtk.AppChooserButton Gtk.ConstraintTarget->Gtk.Widget Gtk.AppChooser Gtk.AppChooser Gtk.AppChooser->Gtk.AppChooserButton

Description:

[ CCode ( type_id = "gtk_app_chooser_button_get_type ()" ) ]
public class AppChooserButton : Widget, Accessible, AppChooser, Buildable, ConstraintTarget

The `GtkAppChooserButton` lets the user select an application.

![An example GtkAppChooserButton](appchooserbutton.png)

Initially, a `GtkAppChooserButton` selects the first application in its list, which will either be the most-recently used application or, if [[email protected]: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 [ [email protected]:show-default-item] is set, the default application is also included. To let the user chooser other applications, you can set the [[email protected]:show-dialog-item] property, which allows to open a full [ [email protected]].

It is possible to add custom items to the list, using [[email protected]_custom_item]. These items cause the [ [email protected]:GtkAppChooserButton:custom-item-activated] signal to be emitted when they are selected.

To track changes in the selected application, use the [[email protected]:GtkAppChooserButton:changed] signal.

CSS nodes

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


Namespace: Gtk
Package: gtk4

Content:

Properties:

Creation methods:

Methods:

Signals:

Inherited Members:

All known members inherited from class Gtk.Widget
All known members inherited from class GLib.Object
All known members inherited from interface Gtk.AppChooser



2022 vala-language.org