[gimp] remove now useless and deprecated g_thread_init



commit 9966bcfd13e76f996d1a7783c458ad5d97a89eee
Author: Michael Murà <batolettre gmail com>
Date:   Thu May 3 20:44:07 2012 +0900

    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.

 app/main.c                           |    2 --
 app/tests.c                          |    1 -
 app/tests/test-core.c                |    1 -
 app/tests/test-xcf.c                 |    1 -
 plug-ins/common/file-pdf-load.c      |    3 ---
 plug-ins/help-browser/help-browser.c |    3 ---
 plug-ins/print/print.c               |    2 --
 7 files changed, 0 insertions(+), 13 deletions(-)
---
diff --git a/app/main.c b/app/main.c
index 063ccf5..60ea1c9 100644
--- a/app/main.c
+++ b/app/main.c
@@ -322,8 +322,6 @@ main (int    argc,
 #endif
 #endif
 
-  g_thread_init (NULL);
-
 #ifdef GIMP_UNSTABLE
   gimp_open_console_window ();
 #endif
diff --git a/app/tests.c b/app/tests.c
index 5014ee2..806d20f 100644
--- a/app/tests.c
+++ b/app/tests.c
@@ -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 ();
 
diff --git a/app/tests/test-core.c b/app/tests/test-core.c
index 69dc724..efd3962 100644
--- a/app/tests/test-core.c
+++ b/app/tests/test-core.c
@@ -229,7 +229,6 @@ main (int    argc,
   Gimp *gimp;
   int   result;
 
-  g_thread_init (NULL);
   g_type_init ();
   g_test_init (&argc, &argv, NULL);
 
diff --git a/app/tests/test-xcf.c b/app/tests/test-xcf.c
index 0e29165..bc00b70 100644
--- a/app/tests/test-xcf.c
+++ b/app/tests/test-xcf.c
@@ -970,7 +970,6 @@ main (int    argc,
   Gimp *gimp;
   int   result;
 
-  g_thread_init (NULL);
   g_type_init ();
   g_test_init (&argc, &argv, NULL);
 
diff --git a/plug-ins/common/file-pdf-load.c b/plug-ins/common/file-pdf-load.c
index 015a137..c91d848 100644
--- a/plug-ins/common/file-pdf-load.c
+++ b/plug-ins/common/file-pdf-load.c
@@ -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 };
diff --git a/plug-ins/help-browser/help-browser.c b/plug-ins/help-browser/help-browser.c
index 9d833d7..e7e3052 100644
--- a/plug-ins/help-browser/help-browser.c
+++ b/plug-ins/help-browser/help-browser.c
@@ -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:
diff --git a/plug-ins/print/print.c b/plug-ins/print/print.c
index 880ae7e..8df29e9 100644
--- a/plug-ins/print/print.c
+++ b/plug-ins/print/print.c
@@ -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;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]