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.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.g_type : UInt64 #

Instance Method Detail

def app_info : Gio::AppInfo? #

def content_type : String #

def content_type=(value : String) : String #

def refresh : Nil #

abstract def to_unsafe #