File gummi-deprecated-g_thread_init.patch of Package gummi

Index: gummi-0.6.1/src/main.c
===================================================================
--- gummi-0.6.1.orig/src/main.c
+++ gummi-0.6.1/src/main.c
@@ -75,7 +75,13 @@ int main (int argc, char *argv[]) {
     g_option_context_parse (context, &argc, &argv, &error);
 
     /* initialize GTK */
-    g_thread_init (NULL);
+    /* 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.
+     * http://developer.gnome.org/glib/2.31/glib-Deprecated-Thread-APIs.html
+     * g_thread_init (NULL); */
+
     gdk_threads_init ();
     gtk_init (&argc, &argv);
     GtkBuilder* builder = gtk_builder_new ();
openSUSE Build Service is sponsored by