Interface

Gtk-3.0GtkMountOperationSignalSignatures

interface SignalSignatures {
    aborted: () => void;
    "ask-password": (
        arg0: string,
        arg1: string,
        arg2: string,
        arg3: Gio.AskPasswordFlags,
    ) => void;
    "ask-question": (arg0: string, arg1: string[]) => void;
    notify: (arg0: GObject.ParamSpec) => void;
    "notify::anonymous": (pspec: GObject.ParamSpec) => void;
    "notify::choice": (pspec: GObject.ParamSpec) => void;
    "notify::domain": (pspec: GObject.ParamSpec) => void;
    "notify::is-showing": (pspec: GObject.ParamSpec) => void;
    "notify::is-tcrypt-hidden-volume": (pspec: GObject.ParamSpec) => void;
    "notify::is-tcrypt-system-volume": (pspec: GObject.ParamSpec) => void;
    "notify::parent": (pspec: GObject.ParamSpec) => void;
    "notify::password": (pspec: GObject.ParamSpec) => void;
    "notify::password-save": (pspec: GObject.ParamSpec) => void;
    "notify::pim": (pspec: GObject.ParamSpec) => void;
    "notify::screen": (pspec: GObject.ParamSpec) => void;
    "notify::username": (pspec: GObject.ParamSpec) => void;
    reply: (arg0: Gio.MountOperationResult) => void;
    "show-processes": (arg0: string, arg1: number[], arg2: string[]) => void;
    "show-unmount-progress": (arg0: string, arg1: number, arg2: number) => void;
}

Hierarchy (View Summary)

Index

Properties

"notify::anonymous": (pspec: GObject.ParamSpec) => void
"notify::choice": (pspec: GObject.ParamSpec) => void
"notify::domain": (pspec: GObject.ParamSpec) => void
"notify::is-showing": (pspec: GObject.ParamSpec) => void
"notify::is-tcrypt-hidden-volume": (pspec: GObject.ParamSpec) => void
"notify::is-tcrypt-system-volume": (pspec: GObject.ParamSpec) => void
"notify::parent": (pspec: GObject.ParamSpec) => void
"notify::password": (pspec: GObject.ParamSpec) => void
"notify::password-save": (pspec: GObject.ParamSpec) => void
"notify::pim": (pspec: GObject.ParamSpec) => void
"notify::screen": (pspec: GObject.ParamSpec) => void
"notify::username": (pspec: GObject.ParamSpec) => void

Properties - Inherited from Gio

aborted: () => void

Emitted by the backend when e.g. a device becomes unavailable while a mount operation is in progress.

Implementations of GMountOperation should handle this signal by dismissing open password dialogs.

2.20

"ask-password": (
    arg0: string,
    arg1: string,
    arg2: string,
    arg3: Gio.AskPasswordFlags,
) => void

Emitted when a mount operation asks the user for a password.

If the message contains a line break, the first line should be presented as a heading. For example, it may be used as the primary text in a GtkMessageDialog.

"ask-question": (arg0: string, arg1: string[]) => void

Emitted when asking the user a question and gives a list of choices for the user to choose from.

If the message contains a line break, the first line should be presented as a heading. For example, it may be used as the primary text in a GtkMessageDialog.

notify: (arg0: GObject.ParamSpec) => void

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Note that getting this signal doesn’t itself guarantee that the value of the property has actually changed. When it is emitted is determined by the derived GObject class. If the implementor did not create the property with GObject.ParamFlags.EXPLICIT_NOTIFY, then any call to g_object_set_property() results in ::notify being emitted, even if the new value is the same as the old. If they did pass GObject.ParamFlags.EXPLICIT_NOTIFY, then this signal is emitted only when they explicitly call g_object_notify() or g_object_notify_by_pspec(), and common practice is to do that only when the value has actually changed.

This signal is typically used to obtain change notification for a single property, by specifying the property name as a detail in the g_signal_connect() call, like this:

g_signal_connect (text_view->buffer, "notify::paste-target-list",
G_CALLBACK (gtk_text_view_target_list_notify),
text_view)

It is important to note that you must use [canonical parameter names][class@GObject.ParamSpec#parameter-names] as detail strings for the notify signal.

reply: (arg0: Gio.MountOperationResult) => void

Emitted when the user has replied to the mount operation.

"show-processes": (arg0: string, arg1: number[], arg2: string[]) => void

Emitted when one or more processes are blocking an operation e.g. unmounting/ejecting a Gio.Mount or stopping a Gio.Drive.

Note that this signal may be emitted several times to update the list of blocking processes as processes close files. The application should only respond with g_mount_operation_reply() to the latest signal (setting Gio.MountOperation.choice to the choice the user made).

If the message contains a line break, the first line should be presented as a heading. For example, it may be used as the primary text in a GtkMessageDialog.

2.22

"show-unmount-progress": (arg0: string, arg1: number, arg2: number) => void

Emitted when an unmount operation has been busy for more than some time (typically 1.5 seconds).

When unmounting or ejecting a volume, the kernel might need to flush pending data in its buffers to the volume stable storage, and this operation can take a considerable amount of time. This signal may be emitted several times as long as the unmount operation is outstanding, and then one last time when the operation is completed, with bytes_left set to zero.

Implementations of GMountOperation should handle this signal by showing an UI notification, and then dismiss it, or show another notification of completion, when bytes_left reaches zero.

If the message contains a line break, the first line should be presented as a heading. For example, it may be used as the primary text in a GtkMessageDialog.

2.34