| 648 * and some libraries aren't smart enough to initialize the thread |
648 * and some libraries aren't smart enough to initialize the thread |
| 649 * subsystem when they need it, we need to do this here. We also |
649 * subsystem when they need it, we need to do this here. We also |
| 650 * threadify dbus when that gets initialized. Ugh. */ |
650 * threadify dbus when that gets initialized. Ugh. */ |
| 651 if (!g_thread_supported()) |
651 if (!g_thread_supported()) |
| 652 g_thread_init(NULL); |
652 g_thread_init(NULL); |
| |
653 #ifndef _WIN32 |
| 653 gdk_threads_init(); |
654 gdk_threads_init(); |
| |
655 #endif |
| 654 #endif /* Glib has threads */ |
656 #endif /* Glib has threads */ |
| 655 |
657 |
| 656 gui_check = gtk_init_check(&argc, &argv); |
658 gui_check = gtk_init_check(&argc, &argv); |
| 657 if (!gui_check) { |
659 if (!gui_check) { |
| 658 char *display = gdk_get_display(); |
660 char *display = gdk_get_display(); |