remove now useless and deprecated g_thread_init

Warning

g_thread_init has been deprecated since version 2.32 and should not be used in newly-written code. This function is no longer necessary. The GLib threading system is automatically initialized at the start of your program.
This commit is contained in:
Michael Muré
2012-05-03 20:44:07 +09:00
parent b694141eb7
commit 9966bcfd13
7 changed files with 0 additions and 13 deletions

View File

@ -322,8 +322,6 @@ main (int argc,
#endif
#endif
g_thread_init (NULL);
#ifdef GIMP_UNSTABLE
gimp_open_console_window ();
#endif

View File

@ -95,7 +95,6 @@ gimp_init_for_gui_testing_internal (gboolean show_gui,
Gimp *gimp;
/* from main() */
g_thread_init(NULL);
g_type_init();
gimp_log_init ();

View File

@ -229,7 +229,6 @@ main (int argc,
Gimp *gimp;
int result;
g_thread_init (NULL);
g_type_init ();
g_test_init (&argc, &argv, NULL);

View File

@ -970,7 +970,6 @@ main (int argc,
Gimp *gimp;
int result;
g_thread_init (NULL);
g_type_init ();
g_test_init (&argc, &argv, NULL);

View File

@ -352,9 +352,6 @@ run (const gchar *name,
values[0].type = GIMP_PDB_STATUS;
values[0].data.d_status = GIMP_PDB_EXECUTION_ERROR;
if (! g_thread_supported ())
g_thread_init (NULL);
if (strcmp (name, LOAD_PROC) == 0)
{
PdfSelectedPages pages = { 0, NULL };

View File

@ -129,9 +129,6 @@ run (const gchar *name,
INIT_I18N ();
if (! g_thread_supported ())
g_thread_init (NULL);
switch (run_mode)
{
case GIMP_RUN_INTERACTIVE:

View File

@ -122,8 +122,6 @@ run (const gchar *name,
*nreturn_vals = 1;
*return_vals = values;
g_thread_init (NULL);
values[0].type = GIMP_PDB_STATUS;
values[0].data.d_status = GIMP_PDB_EXECUTION_ERROR;