Sporadic crashes when starting rt, fixes #3787

This commit is contained in:
heckflosse
2017-04-09 11:34:55 +02:00
parent 92a46e9a3d
commit 028edd5bd9

View File

@@ -119,11 +119,11 @@ int main(int argc, char **argv)
{ {
setlocale(LC_ALL, ""); setlocale(LC_ALL, "");
setlocale(LC_NUMERIC, "C"); // to set decimal point to "." setlocale(LC_NUMERIC, "C"); // to set decimal point to "."
gtk_init (&argc, &argv); // use the "--g-fatal-warnings" command line flag to make warnings fatal
Glib::init(); // called by Gtk::Main, but this may be important for thread handling, so we call it ourselves now Glib::init(); // called by Gtk::Main, but this may be important for thread handling, so we call it ourselves now
gdk_threads_set_lock_functions(G_CALLBACK(myGdkLockEnter), (G_CALLBACK(myGdkLockLeave))); gdk_threads_set_lock_functions(G_CALLBACK(myGdkLockEnter), (G_CALLBACK(myGdkLockLeave)));
gdk_threads_init(); gdk_threads_init();
gtk_init (&argc, &argv); // use the "--g-fatal-warnings" command line flag to make warnings fatal
Gio::init (); Gio::init ();
//mainThread = Glib::Threads::Thread::self(); //mainThread = Glib::Threads::Thread::self();