[ CCode ( has_construct_function = false ) ]
public SignalAdapter.with_main_context (Play play, MainContext context)
A bus-watching SignalSource will be created and attached to the
context.
The attached callback will emit the corresponding signal for the message received. Matching signals for play messages from the bus will be emitted by it on the created adapter object.
| play |
Play instance to emit signals for. |
| context |
A MainContext on which the main-loop will process play bus messages on. |
|
A new SignalAdapter to connect signal handlers to. |