About all my projects
Gnome::Gtk4::R-AppChooser

Gnome::Gtk4::R-AppChooser

Description

Gnome::Gtk4::R-AppChooser is an interface for widgets which allow the user to choose an application.

The main objects that implement this interface are Gnome::Gtk4::AppChooserWidget, Gnome::Gtk4::AppChooserDialog and Gnome::Gtk4::AppChooserButton.

Applications are represented by GIO Gnome::Gio::R-AppInfo objects here. GIO has a concept of recommended and fallback applications for a given content type. Recommended applications are those that claim to handle the content type itself, while fallback also includes applications that handle a more generic content type. GIO also knows the default and last-used application for a given content type. The Gnome::Gtk4::AppChooserWidget provides detailed control over whether the shown list of applications should include default, recommended or fallback applications.

To obtain the application that has been selected in a Gnome::Gtk4::R-AppChooser, use .get-app-info().

Methods

get-app-info

Note: The native version of this routine is deprecated in gtk4-lib() since version 4.10

Returns the currently selected application.

method get-app-info (--> N-Object )

Return value; a Gnome::Gio::R-AppInfo for the currently selected application.

get-content-type

Note: The native version of this routine is deprecated in gtk4-lib() since version 4.10

Returns the content type for which the Gnome::Gtk4::R-AppChooser shows applications.

method get-content-type (--> Str )

Return value; the content type of $self. Free with g_free().

refresh

Note: The native version of this routine is deprecated in gtk4-lib() since version 4.10

Reloads the list of applications.

method refresh ( )