comparison src/gtkmain.c @ 14145:6958202c8ee6

[gaim-migrate @ 16788] gdk_threads_init() is causing problems on win32 for some reason. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Wed, 16 Aug 2006 11:13:19 +0000
parents dabbcb9b013d
children
comparison
equal deleted inserted replaced
14144:92f5e6f3acfb 14145:6958202c8ee6
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();