Most applications (like ours) might already have their threads running before initializing Berkelium.
This if is mandatory to avoid a crash if the application did the g_thead_init() before initalizing Berkelium.
I tested this in our application, all seems fine. Also I made sure if it's not Berkelium that initialized the thread, it shouldn't impose the main window title either (like it is doing when it will init the thread itself).
Most applications (like ours) might already have their threads running before initializing Berkelium.
This if is mandatory to avoid a crash if the application did the g_thead_init() before initalizing Berkelium.
I tested this in our application, all seems fine. Also I made sure if it's not Berkelium that initialized the thread, it shouldn't impose the main window title either (like it is doing when it will init the thread itself).