Interface

Gio-2.0GioNativeVolumeMonitorSignalSignatures

interface SignalSignatures {
    "drive-changed": (arg0: Gio.Drive) => void;
    "drive-connected": (arg0: Gio.Drive) => void;
    "drive-disconnected": (arg0: Gio.Drive) => void;
    "drive-eject-button": (arg0: Gio.Drive) => void;
    "drive-stop-button": (arg0: Gio.Drive) => void;
    "mount-added": (arg0: Gio.Mount) => void;
    "mount-changed": (arg0: Gio.Mount) => void;
    "mount-pre-unmount": (arg0: Gio.Mount) => void;
    "mount-removed": (arg0: Gio.Mount) => void;
    notify: (arg0: GObject.ParamSpec) => void;
    "volume-added": (arg0: Gio.Volume) => void;
    "volume-changed": (arg0: Gio.Volume) => void;
    "volume-removed": (arg0: Gio.Volume) => void;
}

Hierarchy (View Summary)

Index

Properties - Inherited from Gio.VolumeMonitor.SignalSignatures

"drive-changed": (arg0: Gio.Drive) => void

Emitted when a drive changes.

"drive-connected": (arg0: Gio.Drive) => void

Emitted when a drive is connected to the system.

"drive-disconnected": (arg0: Gio.Drive) => void

Emitted when a drive is disconnected from the system.

"drive-eject-button": (arg0: Gio.Drive) => void

Emitted when the eject button is pressed on drive.

2.18

"drive-stop-button": (arg0: Gio.Drive) => void

Emitted when the stop button is pressed on drive.

2.22

"mount-added": (arg0: Gio.Mount) => void

Emitted when a mount is added.

"mount-changed": (arg0: Gio.Mount) => void

Emitted when a mount changes.

"mount-pre-unmount": (arg0: Gio.Mount) => void

May be emitted when a mount is about to be removed.

This signal depends on the backend and is only emitted if GIO was used to unmount.

"mount-removed": (arg0: Gio.Mount) => void

Emitted when a mount is removed.

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.

"volume-added": (arg0: Gio.Volume) => void

Emitted when a mountable volume is added to the system.

"volume-changed": (arg0: Gio.Volume) => void

Emitted when mountable volume is changed.

"volume-removed": (arg0: Gio.Volume) => void

Emitted when a mountable volume is removed from the system.