Interface AppChooser
- All Superinterfaces:
Proxy
- All Known Implementing Classes:
AppChooser.AppChooserImpl
,AppChooserButton
,AppChooserDialog
,AppChooserWidget
GtkAppChooser
is an interface for widgets which allow the user to
choose an application.
The main objects that implement this interface are
AppChooserWidget
,
AppChooserDialog
and 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 GtkAppChooserWidget
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 GtkAppChooser
,
use getAppInfo()
.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Deprecated.The AppChooserImpl type represents a native instance of the AppChooser interface.static interface
AppChooser.Builder<B extends Builder<B>>
Deprecated. -
Method Summary
Modifier and TypeMethodDescriptiondefault AppInfo
Deprecated.This widget will be removed in GTK 5default String
Deprecated.This widget will be removed in GTK 5static Type
getType()
Deprecated.Get the GType of the AppChooser classdefault void
refresh()
Deprecated.This widget will be removed in GTK 5
-
Method Details
-
getType
-
getAppInfo
Deprecated.This widget will be removed in GTK 5Returns the currently selected application.- Returns:
- a
GAppInfo
for the currently selected application
-
getContentType
Deprecated.This widget will be removed in GTK 5Returns the content type for which theGtkAppChooser
shows applications.- Returns:
- the content type of this AppChooser. Free with g_free()
-
refresh
Deprecated.This widget will be removed in GTK 5Reloads the list of applications.
-