Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: AppChooserDialogMeta

[257:14] static extends: object

Generated metadata helpers for AppChooserDialog class surfaces.

Methods

  • properties ()

    Returns property metadata for AppChooserDialog.

    • @r A list.

class: AppChooserDialog

[23:7] extends: object

GtkAppChooserDialog shows a GtkAppChooserWidget inside a GtkDialog. An example
GtkAppChooserDialog Note that GtkAppChooserDialog does not have any interesting methods of its own. Instead, you should get the embedded GtkAppChooserWidget using [method@Gtk.AppChooserDialog.get_widget] and call its methods if the generic [iface@Gtk.AppChooser] interface is not sufficient for your needs. To set the heading that is shown above the GtkAppChooserWidget, use [method@Gtk.AppChooserDialog.set_heading]. ## CSS nodes GtkAppChooserDialog has a single CSS node with the name window and style class .appchooser.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • AppChooserDialog (parent = null, flags = null, file = null)

    Creates a new GtkAppChooserDialog for the provided GFile. The dialog will show applications that can open the file.

    • @p parent is a GtkWindow.
    • @p flags is flags for this dialog.
    • @p file is a GFile.
  • 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.
  • asDialog ()

    Wraps this handle as Dialog.

    • @r A Dialog object.
  • asAccessible ()

    Wraps this handle as Accessible.

    • @r A Accessible object.
  • asAppChooser ()

    Wraps this handle as AppChooser.

    • @r A AppChooser object.
  • asBuildable ()

    Wraps this handle as Buildable.

    • @r A Buildable object.
  • asConstraintTarget ()

    Wraps this handle as ConstraintTarget.

    • @r A ConstraintTarget object.
  • asNative ()

    Wraps this handle as Native.

    • @r A Native object.
  • asRoot ()

    Wraps this handle as Root.

    • @r A Root object.
  • asShortcutManager ()

    Wraps this handle as ShortcutManager.

    • @r A ShortcutManager object.
  • getProperty (string Name)

    Reads one generated property by name.

  • setProperty (string Name, Value)

    Writes one generated property by name.

  • setHeading (string Value)

    The text to show at the top of the dialog. The string may contain Pango markup.

    • @p Value is the new property value.
    • @r None.
  • get_heading ()

    Returns the text to display at the top of the dialog.

  • get_widget ()

    Returns the GtkAppChooserWidget of this dialog.

  • set_heading (string heading)

    Sets the text to display at the top of the dialog. If the heading is not set, the dialog displays a default text.

    • @p heading is a string containing Pango markup.
    • @r None.

class: AppChooserDialogCtors

[234:14] static extends: object

Alternate constructors for AppChooserDialog. Usage: AppChooserDialogCtors.<name>(...). The primary constructor lives directly on AppChooserDialog.

Methods

  • newForContentType (object parent, string flags, string content_type)

    Creates a new GtkAppChooserDialog for the provided content type. The dialog will show applications that can open the content type.

    • @p parent is a GtkWindow.
    • @p flags is flags for this dialog.
    • @p content_type is a content type string.
    • @r A new AppChooserDialog.