[ CCode ( has_construct_function = false ) ]
public Source.with_uid (string uid, MainContext? main_context) throws Error
Creates a new "scratch" Source with a predetermined unique identifier.
The changed signal will be emitted from main_context if given, or else
from the thread-default MainContext at the time this function is called.
| uid |
a new unique identifier string |
| main_context |
a MainContext or null |
|
a new scratch Source, or null on error |