Adds a bus signal watch to the default main context with the given priority
(e.g. G_PRIORITY_DEFAULT). It is also possible to use a non-default main
context set up using MainContext.pushThreadDefault
(before one had to create a bus watch source and attach it to the desired
main context 'manually').
After calling this statement, the bus will emit the "message" signal for each
message posted on the bus when the main loop is running.
This function may be called multiple times. To clean up, the caller is
responsible for calling Bus.removeSignalWatch as many times as this
function is called.
There can only be a single bus watch per bus, you must remove any signal
watch before you can set another type of watch.
Adds a bus signal watch to the default main context with the given priority (e.g. G_PRIORITY_DEFAULT). It is also possible to use a non-default main context set up using MainContext.pushThreadDefault (before one had to create a bus watch source and attach it to the desired main context 'manually').
After calling this statement, the bus will emit the "message" signal for each message posted on the bus when the main loop is running.
This function may be called multiple times. To clean up, the caller is responsible for calling Bus.removeSignalWatch as many times as this function is called.
There can only be a single bus watch per bus, you must remove any signal watch before you can set another type of watch.
MT safe.