Gtk.MountOperation¶
class — extends Gio.MountOperation
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
Gio.File.mount_enclosing_volume,
Gio.File.mount_mountable,
Gio.Volume.mount,
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.
Constructors¶
new¶
Creates a new GtkMountOperation.
Parameters:
parent— transient parent of the window
Methods¶
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¶
Sets the display to show windows of the GtkMountOperation on.
Parameters:
display— aGdkDisplay
set_parent¶
Sets the transient parent for windows shown by the
GtkMountOperation.
Parameters:
parent— transient parent of the window
Properties¶
display¶
The display where dialogs will be shown.
is_showing¶
Whether a dialog is currently shown.
parent¶
The parent window.