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
AppChooserDialogGidBuilder builder() static nothrowGet builder for [gtk.app_chooser_dialog.AppChooserDialog] Returns: New builder objectgio.file.File gfile() @property nothrowGet `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() @property nothrowGet `heading` property. Returns: The text to show at the top of the dialog. The string may contain Pango markup.void heading(string propval) @property nothrowSet `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) static nothrowCreates a new #GtkAppChooserDialog for the provided content type, to allow the user to select an application for it.string getHeading() nothrowReturns 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() nothrowReturns the #GtkAppChooserWidget of this dialog. Returns: the #GtkAppChooserWidget of selfvoid setHeading(string heading) nothrowSets 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
Fluent builder implementation template for gtk.app_chooser_dialog.AppChooserDialog
Methods
T gfile(gio.file.File propval) nothrowSet `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) nothrowSet `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