gtk.app_chooser_dialog

Module for AppChooserDialog class

Types 3

gtk.app_chooser_dialog.AppChooserDialog shows a gtk.app_chooser_widget.AppChooserWidget inside a gtk.dialog.Dialog.

!An example GtkAppChooserDialog

Note that gtk.app_chooser_dialog.AppChooserDialog does not have any interesting methods of its own. Instead, you should get the embedded gtk.app_chooser_widget.AppChooserWidget using gtk.app_chooser_dialog.AppChooserDialog.getWidget and call its methods if the generic gtk.app_chooser.AppChooser interface is not sufficient for your needs.

To set the heading that is shown above the gtk.app_chooser_widget.AppChooserWidget, use gtk.app_chooser_dialog.AppChooserDialog.setHeading.

CSS nodes

gtk.app_chooser_dialog.AppChooserDialog has a single CSS node with the name window and style class .appchooser.

Deprecated

The application selection widgets should be

implemented according to the design of each platform and/or application requiring them.

Methods
GType _gType() @property
AppChooserDialog self()Returns `this`, for use in `with` statements.
AppChooserDialogGidBuilder builder()Get builder for [gtk.app_chooser_dialog.AppChooserDialog] Returns: New builder object
gio.file.File gfile() @propertyGet `gfile` property. Returns: The GFile used by the [gtk.app_chooser_dialog.AppChooserDialog].
string heading() @propertyGet `heading` property. Returns: The text to show at the top of the dialog.
void heading(string propval) @propertySet `heading` property. Params: propval = The text to show at the top of the dialog.
gtk.app_chooser_dialog.AppChooserDialog newForContentType(gtk.window.Window parent, gtk.types.DialogFlags flags, string contentType)Creates a new [gtk.app_chooser_dialog.AppChooserDialog] for the provided content type.
string getHeading()Returns the text to display at the top of the dialog. Returns: the text to display at the top of the dialog, or null, in which case a default text is displayed
gtk.widget.Widget getWidget()Returns the [gtk.app_chooser_widget.AppChooserWidget] of this dialog. Returns: the [gtk.app_chooser_widget.AppChooserWidget] of self
void setHeading(string heading)Sets the text to display at the top of the dialog.
Constructors
this(void * ptr, Flag!"Take" take)
this(gtk.window.Window parent, gtk.types.DialogFlags flags, gio.file.File file)Creates a new [gtk.app_chooser_dialog.AppChooserDialog] for the provided [gio.file.File].

Fluent builder implementation template for gtk.app_chooser_dialog.AppChooserDialog

Methods
T gfile(gio.file.File propval)Set `gfile` property. Params: propval = The GFile used by the [gtk.app_chooser_dialog.AppChooserDialog].
T heading(string propval)Set `heading` property. Params: propval = The text to show at the top of the dialog.