Gtk.MountOperation

g GObject.Object GObject.Object Gio.MountOperation Gio.MountOperation GObject.Object->Gio.MountOperation Gtk.MountOperation Gtk.MountOperation Gio.MountOperation->Gtk.MountOperation

Subclasses:

None

Methods

Inherited:

Gio.MountOperation (20), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (parent)

get_display ()

get_parent ()

is_showing ()

set_display (display)

set_parent (parent)

Virtual Methods

Inherited:

Gio.MountOperation (6), GObject.Object (7)

Properties

Inherited:

Gio.MountOperation (9)

Name

Type

Flags

Short Description

display

Gdk.Display

r/w

is-showing

bool

r

parent

Gtk.Window

r/w

Signals

Inherited:

Gio.MountOperation (6), GObject.Object (1)

Fields

Inherited:

Gio.MountOperation (6), GObject.Object (1)

Name

Type

Access

Description

parent_instance

Gio.MountOperation

r

Class Details

class Gtk.MountOperation(**kwargs)
Bases:

Gio.MountOperation

Abstract:

No

Structure:

Gtk.MountOperationClass

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 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.

classmethod new(parent)[source]
Parameters:

parent (Gtk.Window or None) – transient parent of the window

Returns:

a new GtkMountOperation

Return type:

Gio.MountOperation

Creates a new GtkMountOperation.

get_display()[source]
Returns:

the display on which windows of self are shown

Return type:

Gdk.Display

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

get_parent()[source]
Returns:

the transient parent for windows shown by self

Return type:

Gtk.Window or None

Gets the transient parent used by the GtkMountOperation.

is_showing()[source]
Returns:

True if self is currently displaying a window

Return type:

bool

Returns whether the GtkMountOperation is currently displaying a window.

set_display(display)[source]
Parameters:

display (Gdk.Display) – a GdkDisplay

Sets the display to show windows of the GtkMountOperation on.

set_parent(parent)[source]
Parameters:

parent (Gtk.Window or None) – transient parent of the window

Sets the transient parent for windows shown by the GtkMountOperation.

Property Details

Gtk.MountOperation.props.display
Name:

display

Type:

Gdk.Display

Default Value:

None

Flags:

READABLE, WRITABLE

The display where dialogs will be shown.

Gtk.MountOperation.props.is_showing
Name:

is-showing

Type:

bool

Default Value:

False

Flags:

READABLE

Whether a dialog is currently shown.

Gtk.MountOperation.props.parent
Name:

parent

Type:

Gtk.Window

Default Value:

None

Flags:

READABLE, WRITABLE

The parent window.