Drive.connectStopButton
gulong connectStopButton(T)(T callback, Flag!"After" after = No.After)Connect to StopButton signal.
Emitted when the physical stop button (if any) of a drive has been pressed.
Parameters
callback | signal callback delegate or function to connect void callback(gio.drive.Drive drive) drive the instance the signal is connected to (optional) |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID