struct Gio::MountOperation::ShowUnmountProgressSignal
- Gio::MountOperation::ShowUnmountProgressSignal
- GObject::Signal
- Struct
- Value
- Object
Overview
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 #Gtk::MessageDialog.
Defined in:
lib/gi-crystal/src/auto/gio-2.0/mount_operation.crInstance Method Summary
- #connect(*, after : Bool = false, &block : Proc(String, Int64, Int64, Nil)) : GObject::SignalConnection
- #connect(handler : Proc(String, Int64, Int64, Nil), *, after : Bool = false) : GObject::SignalConnection
- #connect(handler : Proc(Gio::MountOperation, String, Int64, Int64, Nil), *, after : Bool = false) : GObject::SignalConnection
- #emit(message : String, time_left : Int64, bytes_left : Int64) : Nil
-
#name : String
The signal name