MountOperation

GtkMountOperation is an implementation of GMountOperation.

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

GtkMountOperation is needed when mounting volumes: It is an implementation of GMountOperation that can be used with GIO functions for mounting volumes such as g_file_mount_enclosing_volume(), g_file_mount_mountable(), g_volume_mount(), g_mount_unmount_with_operation() and others.

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

Constructors

this
this(GtkMountOperation* gtkMountOperation, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(Window parent)

Creates a new GtkMountOperation.

Members

Functions

getDisplay
Display getDisplay()

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

getGtkMountOperationStruct
GtkMountOperation* getGtkMountOperationStruct(bool transferOwnership)

Get the main Gtk struct

getParent
Window getParent()

Gets the transient parent used by the GtkMountOperation.

getStruct
void* getStruct()

the main Gtk struct as a void*

isShowing
bool isShowing()

Returns whether the GtkMountOperation is currently displaying a window.

setDisplay
void setDisplay(Display display)

Sets the display to show windows of the GtkMountOperation on.

setParent
void setParent(Window parent)

Sets the transient parent for windows shown by the GtkMountOperation.

Static functions

getType
GType getType()

Variables

gtkMountOperation
GtkMountOperation* gtkMountOperation;

the main Gtk struct

Meta