comparison src/gtk/gftp-gtk.c @ 906:2089f064a360

2007-3-26 Brian Masney <masneyb@gftp.org> * src/gtk/gftp-gtk.c (main) - call gdk_threads_enter() earlier in the startup. This fixes an issue where gftp can hang on startup. (from Nick Mainsbridge <beatroot@optushome.com.au>)
author masneyb
date Wed, 28 Mar 2007 02:33:02 +0000
parents 1808cebed602
children 1f9c6baa458c
comparison
equal deleted inserted replaced
905:c2be64b831d9 906:2089f064a360
1366 g_thread_init (NULL); 1366 g_thread_init (NULL);
1367 1367
1368 #if GTK_MAJOR_VERSION > 1 1368 #if GTK_MAJOR_VERSION > 1
1369 gdk_threads_init(); 1369 gdk_threads_init();
1370 #endif 1370 #endif
1371 1371 GDK_THREADS_ENTER ();
1372 main_thread_id = pthread_self (); 1372 main_thread_id = pthread_self ();
1373 gtk_set_locale (); 1373 gtk_set_locale ();
1374 gtk_init (&argc, &argv); 1374 gtk_init (&argc, &argv);
1375 1375
1376 graphic_hash_table = g_hash_table_new (string_hash_function, 1376 graphic_hash_table = g_hash_table_new (string_hash_function,
1406 gtk_timeout_add (1000, update_downloads, NULL); 1406 gtk_timeout_add (1000, update_downloads, NULL);
1407 1407
1408 _setup_window1 (); 1408 _setup_window1 ();
1409 _setup_window2 (argc, argv); 1409 _setup_window2 (argc, argv);
1410 1410
1411 GDK_THREADS_ENTER ();
1412 gtk_main (); 1411 gtk_main ();
1413 GDK_THREADS_LEAVE (); 1412 GDK_THREADS_LEAVE ();
1414 1413
1415 return (0); 1414 return (0);
1416 } 1415 }