src/gtkmain.c

changeset 14207
ec7a75cb8093
parent 14184
5f5523ee9364
equal deleted inserted replaced
14206:5a17eb1a2c3e 14207:ec7a75cb8093
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();

mercurial