Gnome::Gtk4::AppChooserDialog
Description
Gnome::Gtk4::AppChooserDialog shows a Gnome::Gtk4::AppChooserWidget inside a Gnome::Gtk4::Dialog.
Note that Gnome::Gtk4::AppChooserDialog does not have any interesting methods of its own. Instead, you should get the embedded Gnome::Gtk4::AppChooserWidget using .get-widget()
and call its methods if the generic Gnome::Gtk4::R-AppChooser interface is not sufficient for your needs.
To set the heading that is shown above the Gnome::Gtk4::AppChooserWidget, use .set-heading()
.
CSS nodes
Gnome::Gtk4::AppChooserDialog has a single CSS node with the name window and style class `.appchooser`.
Class initialization
Note: The native version of this class is deprecated in gtk4-lib() since version 4.10
new
:native-object
Create an object using a native object from elsewhere. See also Gnome::N::TopLevelSupportClass.
multi method new ( N-Object :$native-object! )
new-appchooserdialog
Note: The native version of this routine is deprecated in gtk4-lib() since version 4.10
Creates a new Gnome::Gtk4::AppChooserDialog for the provided Gnome::Gio::R-File.
The dialog will show applications that can open the file.
method new-appchooserdialog ( N-Object() $parent, UInt $flags, N-Object() $file --> Gnome::Gtk4::AppChooserDialog \)
$parent; a Gnome::Gtk4::Window.
$flags; flags for this dialog.
$file; a Gnome::Gio::R-File.
new-for-content-type
Note: The native version of this routine is deprecated in gtk4-lib() since version 4.10
Creates a new Gnome::Gtk4::AppChooserDialog for the provided content type.
The dialog will show applications that can open the content type.
method new-for-content-type ( N-Object() $parent, UInt $flags, Str $content-type --> Gnome::Gtk4::AppChooserDialog \)
$parent; a Gnome::Gtk4::Window.
$flags; flags for this dialog.
$content-type; a content type string.
Methods
get-heading
Note: The native version of this routine is deprecated in gtk4-lib() since version 4.10
Returns the text to display at the top of the dialog.
method get-heading (--> Str )
Return value; the text to display at the top of the dialog, or undefined, in which case a default text is displayed.
get-widget
Note: The native version of this routine is deprecated in gtk4-lib() since version 4.10
Returns the Gnome::Gtk4::AppChooserWidget of this dialog.
method get-widget (--> N-Object )
Return value; the Gnome::Gtk4::AppChooserWidget of $self
.
set-heading
Note: The native version of this routine is deprecated in gtk4-lib() since version 4.10
Sets the text to display at the top of the dialog.
If the heading is not set, the dialog displays a default text.
method set-heading ( Str $heading )
$heading; a string containing Pango markup.