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:
@ -322,8 +322,6 @@ main (int argc,
|
||||
#endif
|
||||
#endif
|
||||
|
||||
g_thread_init (NULL);
|
||||
|
||||
#ifdef GIMP_UNSTABLE
|
||||
gimp_open_console_window ();
|
||||
#endif
|
||||
|
@ -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 ();
|
||||
|
||||
|
@ -229,7 +229,6 @@ main (int argc,
|
||||
Gimp *gimp;
|
||||
int result;
|
||||
|
||||
g_thread_init (NULL);
|
||||
g_type_init ();
|
||||
g_test_init (&argc, &argv, NULL);
|
||||
|
||||
|
@ -970,7 +970,6 @@ main (int argc,
|
||||
Gimp *gimp;
|
||||
int result;
|
||||
|
||||
g_thread_init (NULL);
|
||||
g_type_init ();
|
||||
g_test_init (&argc, &argv, NULL);
|
||||
|
||||
|
@ -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 };
|
||||
|
@ -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:
|
||||
|
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user