1.124 <GtkMountOperation>

Class: <GtkMountOperation>

It derives from <GMountOperation>.

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 file:mount-enclosing-volume, file:mount-mountable, volume:mount, mount:unmount-with-operation and others.

When necessary, <GtkMountOperation> shows dialogs to let the user enter passwords, ask questions or show processes blocking unmount.

Fields

parent-instance
priv

Properties

Property: mount-operation:display self

The display where dialogs will be shown.

Its value is a <GdkDisplay>, or #f.

Set it with (set! (mount-operation:display self) value).

Property: mount-operation:is-showing self

Whether a dialog is currently shown.

Its value is a boolean.

It is read only.

Property: mount-operation:parent self

The parent window.

Its value is a <GtkWindow>, or #f.

Set it with (set! (mount-operation:parent self) value).

Procedures

Method: mount-operation:get-display self ⇒ %return
Method: get-display self ⇒ %return

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

self

Passed: a <GtkMountOperation>.

a <GtkMountOperation>

%return

Returned: a <GdkDisplay>.

the display on which windows of self are shown

Method: mount-operation:get-parent self ⇒ %return
Method: get-parent self ⇒ %return

Gets the transient parent used by the <GtkMountOperation>.

self

Passed: a <GtkMountOperation>.

a <GtkMountOperation>

%return

Returned: a <GtkWindow>, or #f.

the transient parent for windows shown by self

Method: mount-operation:is-showing? self ⇒ %return
Method: is-showing? self ⇒ %return

Returns whether the <GtkMountOperation> is currently displaying a window.

self

Passed: a <GtkMountOperation>.

a <GtkMountOperation>

%return

Returned: a boolean.

#t if self is currently displaying a window

Procedure: mount-operation:new [parent] ⇒ %return

Creates a new <GtkMountOperation>.

parent

Passed, or left out: a <GtkWindow>, or #f.

transient parent of the window

%return

Returned: a <GMountOperation>.

a new <GtkMountOperation>

Method: mount-operation:set-display self display
Method: set-display self display

Sets the display to show windows of the <GtkMountOperation> on.

self

Passed: a <GtkMountOperation>.

a <GtkMountOperation>

display

Passed: a <GdkDisplay>.

a <GdkDisplay>

Method: mount-operation:set-parent self [parent]
Method: set-parent self [parent]

Sets the transient parent for windows shown by the <GtkMountOperation>.

self

Passed: a <GtkMountOperation>.

a <GtkMountOperation>

parent

Passed, or left out: a <GtkWindow>, or #f.

transient parent of the window