Function gtk4::source ·
pub unsafe fn set_initialized()
Informs this crate that GTK has been initialized and the current thread is the main one.
This function will panic if you attempt to initialize GTK from more than one thread.
You must only call this if:
- You have initialized the underlying GTK library yourself.
- You did 1 on the thread with which you are calling this function
- You ensure that this thread is the main thread for the process.