Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: MountOperationMeta

[205:14] static extends: object

Generated metadata helpers for MountOperation class surfaces.

Methods

  • properties ()

    Returns property metadata for MountOperation.

    • @r A list.

class: MountOperation

[19:7] extends: object

Asks the user for passwords and other information required to mount a volume. GtkMountOperation is needed when mounting volumes: It is an implementation of GMountOperation that can be used with GIO functions for mounting volumes such as [method@Gio.File.mount_enclosing_volume], [method@Gio.File.mount_mountable], [method@Gio.Volume.mount], [method@Gio.Mount.unmount_with_operation] and others. When necessary, GtkMountOperation shows dialogs to let the user enter passwords, ask questions or show processes blocking unmount.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • MountOperation (parent = null)

    Creates a new GtkMountOperation.

    • @p parent is transient parent of the window.
  • 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.
  • asMountOperation ()

    Wraps this handle as MountOperation.

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

    Reads one generated property by name.

  • setProperty (string Name, Value)

    Writes one generated property by name.

  • setDisplay (object Value)

    The display where dialogs will be shown.

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

    The parent window.

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

    Gets the display on which windows of the GtkMountOperation will be shown.

  • get_parent ()

    Gets the transient parent used by the GtkMountOperation.

  • is_showing ()

    Returns whether the GtkMountOperation is currently displaying a window.

  • set_display (object display)

    Sets the display to show windows of the GtkMountOperation on.

    • @p display is a GdkDisplay.
    • @r None.
  • set_parent (object parent)

    Sets the transient parent for windows shown by the GtkMountOperation.

    • @p parent is transient parent of the window.
    • @r None.