Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: AppChooserMeta

[136:14] static extends: object

Generated metadata helpers for AppChooser interface surfaces.

Methods

  • properties ()

    Returns property metadata for AppChooser.

    • @r A list.

class: AppChooser

[24:7] extends: object

GtkAppChooser is an interface for widgets which allow the user to choose an application. The main objects that implement this interface are [class@Gtk.AppChooserWidget], [class@Gtk.AppChooserDialog] and [class@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 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 [method@Gtk.AppChooser.get_app_info].

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • AppChooser (Handle = null)

    Creates a new AppChooser by wrapping a native handle or another wrapper.

    • @p Handle is the native handle or another wrapper whose handle to adopt.
  • toNativeHandle (Source)

    Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from fn.call(...), another generated wrapper exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • get_app_info ()

    Returns the currently selected application.

  • get_content_type ()

    Returns the content type for which the GtkAppChooser shows applications.

  • refresh ()

    Reloads the list of applications.

    • @r None.