module Gtk::AppChooser
Overview
Gtk::AppChooser
is an interface for widgets which allow the user to
choose an application.
The main objects that implement this interface are
Gtk::AppChooserWidget
,
Gtk::AppChooserDialog
and Gtk::AppChooserButton
.
Applications are represented by GIO GAppInfo
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 Gtk::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 Gtk::AppChooser
,
use Gtk::AppChooser#app_info
.
Direct including types
Defined in:
lib/gi-crystal/src/auto/gtk-4.0/app_chooser.crClass Method Summary
Instance Method Summary
- #app_info : Gio::AppInfo?
- #content_type : String
- #content_type=(value : String) : String
- #refresh : Nil
- #to_unsafe