gtk.app_chooser_dialog
Module for [AppChooserDialog] class
Types 3
#GtkAppChooserDialog shows a #GtkAppChooserWidget inside a #GtkDialog.
Note that #GtkAppChooserDialog does not have any interesting methods of its own. Instead, you should get the embedded #GtkAppChooserWidget using [gtk.app_chooser_dialog.AppChooserDialog.getWidget] and call its methods if the generic #GtkAppChooser interface is not sufficient for your needs.
To set the heading that is shown above the #GtkAppChooserWidget, use [gtk.app_chooser_dialog.AppChooserDialog.setHeading].
Methods
AppChooserDialog self()Returns `this`, for use in `with` statements.AppChooserDialogGidBuilder builder()Get builder for [gtk.appchooserdialog.AppChooserDialog] Returns: New builder objectgio.file.File gfile() @propertyGet `gfile` property. Returns: The GFile used by the #GtkAppChooserDialog. The dialog's #GtkAppChooserWidget content type will be guessed from the file, if present.string heading() @propertyGet `heading` property. Returns: The text to show at the top of the dialog. The string may contain Pango markup.void heading(string propval) @propertySet `heading` property. Params: propval = The text to show at the top of the dialog. The string may contain Pango markup.gtk.app_chooser_dialog.AppChooserDialog newForContentType(gtk.window.Window parent, gtk.types.DialogFlags flags, string contentType)Creates a new #GtkAppChooserDialog for the provided content type, to allow the user to select an application for it.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 displayedgtk.widget.Widget getWidget()Returns the #GtkAppChooserWidget of this dialog. Returns: the #GtkAppChooserWidget of selfvoid setHeading(string heading)Sets the text to display at the top of the dialog. If the heading is not set, the dialog displays a default text.Constructors
this(gtk.window.Window parent, gtk.types.DialogFlags flags, gio.file.File file)Creates a new #GtkAppChooserDialog for the provided #GFile, to allow the user to select an application for it.classAppChooserDialogGidBuilderImpl(T) : gtk.dialog.DialogGidBuilderImpl!T, gtk.app_chooser.AppChooserGidBuilderImpl!T
Methods
T gfile(gio.file.File propval)Set `gfile` property. Params: propval = The GFile used by the #GtkAppChooserDialog. The dialog's #GtkAppChooserWidget content type will be guessed from the file, if present. Returns: Builder instan...T heading(string propval)Set `heading` property. Params: propval = The text to show at the top of the dialog. The string may contain Pango markup. Returns: Builder instance for fluent chainingFluent builder for [gtk.app_chooser_dialog.AppChooserDialog]
Methods