[brasero/wip/davidk/compiler-warnings: 1/6] Remove deprecated GThread init functions




commit c3820358e916abfb5c2e05bde54d9dc79bf6c163
Author: David King <amigadave amigadave com>
Date:   Tue Oct 19 15:21:32 2021 +0100

    Remove deprecated GThread init functions
    
    https://gitlab.gnome.org/GNOME/brasero/-/issues/332

 libbrasero-burn/burn-basics.c    | 4 ----
 libbrasero-media/brasero-media.c | 4 ----
 src/main.c                       | 3 ---
 3 files changed, 11 deletions(-)
---
diff --git a/libbrasero-burn/burn-basics.c b/libbrasero-burn/burn-basics.c
index f4c3a9f0..8e43c7bd 100644
--- a/libbrasero-burn/burn-basics.c
+++ b/libbrasero-burn/burn-basics.c
@@ -248,10 +248,6 @@ brasero_burn_library_start (int *argc,
        g_setenv ("DBUS_SESSION_BUS_ADDRESS", "autolaunch:", TRUE);
 #endif
 
-       /* Initialize external libraries (threads...) */
-       if (!g_thread_supported ())
-               g_thread_init (NULL);
-
        /* ... and GStreamer) */
        if (!gst_init_check (argc, argv, NULL))
                return FALSE;
diff --git a/libbrasero-media/brasero-media.c b/libbrasero-media/brasero-media.c
index 7ef28377..666e5936 100644
--- a/libbrasero-media/brasero-media.c
+++ b/libbrasero-media/brasero-media.c
@@ -542,10 +542,6 @@ brasero_media_library_start (void)
        g_setenv ("DBUS_SESSION_BUS_ADDRESS", "autolaunch:", TRUE);
 #endif
 
-       /* Initialize external libraries (threads... */
-       if (!g_thread_supported ())
-               g_thread_init (NULL);
-
        /* Initialize i18n */
        bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
        bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
diff --git a/src/main.c b/src/main.c
index 331fe1b0..2467ec4f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -71,9 +71,6 @@ main (int argc, char **argv)
        textdomain (GETTEXT_PACKAGE);
 #endif
 
-       g_thread_init (NULL);
-       g_type_init ();
-
        /* Though we use gtk_get_option_group we nevertheless want gtk+ to be
         * in a usable state to display our error messages while brasero
         * specific options are parsed. Otherwise on error that crashes. */


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