gtk.mount_operation

Module for [MountOperation] class

Types 3

[gtk.mount_operation.MountOperation] is an implementation of [gio.mount_operation.MountOperation].

The functions and objects described here make working with GTK and GIO more convenient.

[gtk.mount_operation.MountOperation] is needed when mounting volumes: It is an implementation of [gio.mount_operation.MountOperation] that can be used with GIO functions for mounting volumes such as [gio.file.File.mountEnclosingVolume], [gio.file.File.mountMountable], [gio.volume.Volume.mount], [gio.mount.Mount.unmountWithOperation] and others.

When necessary, [gtk.mount_operation.MountOperation] shows dialogs to let the user enter passwords, ask questions or show processes blocking unmount.

Methods
GType _gType() @property
MountOperation self()Returns `this`, for use in `with` statements.
MountOperationGidBuilder builder()Get builder for [gtk.mount_operation.MountOperation] Returns: New builder object
gdk.display.Display display() @propertyGet `display` property. Returns: The display where dialogs will be shown.
void display(gdk.display.Display propval) @propertySet `display` property. Params: propval = The display where dialogs will be shown.
gtk.window.Window parent() @propertyGet `parent` property. Returns: The parent window.
void parent(gtk.window.Window propval) @propertySet `parent` property. Params: propval = The parent window.
gdk.display.Display getDisplay()Gets the display on which windows of the [gtk.mount_operation.MountOperation] will be shown. Returns: the display on which windows of op are shown
gtk.window.Window getParent()Gets the transient parent used by the [gtk.mount_operation.MountOperation]. Returns: the transient parent for windows shown by op
bool isShowing()Returns whether the [gtk.mount_operation.MountOperation] is currently displaying a window. Returns: true if op is currently displaying a window
void setDisplay(gdk.display.Display display)Sets the display to show windows of the [gtk.mount_operation.MountOperation] on.
void setParent(gtk.window.Window parent = null)Sets the transient parent for windows shown by the [gtk.mount_operation.MountOperation].
Constructors
this(void * ptr, Flag!"Take" take)
this(gtk.window.Window parent = null)Creates a new [gtk.mount_operation.MountOperation].
Methods
T display(gdk.display.Display propval)Set `display` property. Params: propval = The display where dialogs will be shown. Returns: Builder instance for fluent chaining
T parent(gtk.window.Window propval)Set `parent` property. Params: propval = The parent window. Returns: Builder instance for fluent chaining

Fluent builder for [gtk.mount_operation.MountOperation]