app/app_procs.c call g_thread_init() as the very first function in main().

2006-12-29  Michael Natterer  <mitch@gimp.org>

	* app/app_procs.c
	* app/main.c: call g_thread_init() as the very first function in
	main().
This commit is contained in:
Michael Natterer 2006-12-29 02:28:50 +00:00 committed by Michael Natterer
parent e3282e64fe
commit 25cc132bfc
3 changed files with 11 additions and 5 deletions

View File

@ -1,3 +1,9 @@
2006-12-29 Michael Natterer <mitch@gimp.org>
* app/app_procs.c
* app/main.c: call g_thread_init() as the very first function in
main().
2006-12-29 Sven Neumann <sven@gimp.org>
* tools/pdbgen/pdb/gimprc.pdb: export gimp_get_default_unit() to

View File

@ -83,11 +83,6 @@ void
app_libs_init (GOptionContext *context,
gboolean no_interface)
{
#ifdef ENABLE_MP
if (! g_thread_supported ())
g_thread_init (NULL);
#endif
if (no_interface)
{
g_type_init ();

View File

@ -250,6 +250,11 @@ main (int argc,
gchar *basename;
gint i;
#ifdef ENABLE_MP
if (! g_thread_supported ())
g_thread_init (NULL);
#endif
gimp_init_malloc ();
gimp_env_init (FALSE);