Interface AppChooser

All Superinterfaces:
Proxy
All Known Implementing Classes:
AppChooser.AppChooser$Impl, AppChooserButton, AppChooserDialog, AppChooserWidget

@Generated("org.javagi.JavaGI") @Deprecated public interface AppChooser extends Proxy
Deprecated.
The application selection widgets should be implemented according to the design of each platform and/or application requiring them.

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 Classes
    Modifier and Type
    Interface
    Description
    static class 
    Deprecated.
    The AppChooser$Impl type represents a native instance of the AppChooser interface.
    static interface 
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default @Nullable AppInfo
    Deprecated.
    This widget will be removed in GTK 5
    default String
    Deprecated.
    This widget will be removed in GTK 5
    static @Nullable Type
    Deprecated.
    Get the GType of the AppChooser class.
    default void
    Deprecated.
    This widget will be removed in GTK 5

    Methods inherited from interface Proxy

    handle
  • Method Details

    • getType

      static @Nullable Type getType()
      Deprecated.
      Get the GType of the AppChooser class.
      Returns:
      the GType
    • getAppInfo

      @Deprecated default @Nullable AppInfo getAppInfo()
      Deprecated.
      This widget will be removed in GTK 5
      Returns the currently selected application.
      Returns:
      a GAppInfo for the currently selected application
    • getContentType

      @Deprecated default String getContentType()
      Deprecated.
      This widget will be removed in GTK 5
      Returns the content type for which the GtkAppChooser shows applications.
      Returns:
      the content type of self. Free with g_free()
    • refresh

      @Deprecated default void refresh()
      Deprecated.
      This widget will be removed in GTK 5
      Reloads the list of applications.