Interface AppChooser
- All Superinterfaces:
Proxy
- All Known Implementing Classes:
AppChooser.AppChooser$Impl,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
Nested ClassesModifier and TypeInterfaceDescriptionstatic classDeprecated.The AppChooser$Impl type represents a native instance of the AppChooser interface.static interfaceAppChooser.Builder<B extends Builder<B>>Deprecated. -
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable AppInfoDeprecated.This widget will be removed in GTK 5default StringDeprecated.This widget will be removed in GTK 5static @Nullable TypegetType()Deprecated.Get the GType of the AppChooser classdefault voidrefresh()Deprecated.This widget will be removed in GTK 5
-
Method Details
-
getType
Deprecated.Get the GType of the AppChooser class- Returns:
- the GType
-
getAppInfo
Deprecated.This widget will be removed in GTK 5Returns the currently selected application.- Returns:
- a
GAppInfofor the currently selected application
-
getContentType
Deprecated.This widget will be removed in GTK 5Returns the content type for which theGtkAppChoosershows applications.- Returns:
- the content type of
self.Free with g_free()
-
refresh
Deprecated.This widget will be removed in GTK 5Reloads the list of applications.
-