After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 663285 - Don't call g_thread_init()
Don't call g_thread_init()
Status: RESOLVED FIXED
Product: yelp
Classification: Applications
Component: General
unspecified
Other All
: Normal normal
: ---
Assigned To: Yelp maintainers
Yelp maintainers
Depends on:
Blocks:
 
 
Reported: 2011-11-03 02:53 UTC by Matthias Clasen
Modified: 2012-01-21 16:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Don't call g_thread_init() (711 bytes, patch)
2011-11-03 02:53 UTC, Matthias Clasen
committed Details | Review
Don't call g_thread_init() (711 bytes, patch)
2011-11-03 13:18 UTC, Matthias Clasen
committed Details | Review
Fix remaining g_thread_init calls (2.86 KB, patch)
2012-01-03 12:13 UTC, Martin Pitt
reviewed Details | Review
Fix remaining g_thread_init calls (2.80 KB, patch)
2012-01-04 15:10 UTC, Martin Pitt
committed Details | Review

Description Matthias Clasen 2011-11-03 02:53:30 UTC
g_type_init() has been doing this anyway since GLib 2.24 or so
anyway. And with GLib 2.31, it is not necessary anymore.
Comment 1 Matthias Clasen 2011-11-03 02:53:36 UTC
Created attachment 200561 [details] [review]
Don't call g_thread_init()
Comment 2 Matthias Clasen 2011-11-03 13:18:15 UTC
The following fix has been pushed:
f5c1a48 Don't call g_thread_init()
Comment 3 Matthias Clasen 2011-11-03 13:18:18 UTC
Created attachment 200592 [details] [review]
Don't call g_thread_init()

g_type_init() has been doing this anyway since GLib 2.24 or so
anyway. And with GLib 2.31, it is not necessary anymore.
Comment 4 Martin Pitt 2012-01-03 12:12:26 UTC
The previous patch only fixed one instance, but current git head has a few more places, which causes build failure now.
Comment 5 Martin Pitt 2012-01-03 12:13:03 UTC
Created attachment 204493 [details] [review]
Fix remaining g_thread_init calls

This fixes the remaining instances. OK for me to push?
Comment 6 Martin Pitt 2012-01-03 12:16:54 UTC
Comment on attachment 200561 [details] [review]
Don't call g_thread_init()

duplicate patch attachment, marking as committed/obsolete for clarity
Comment 7 Matthias Clasen 2012-01-04 13:47:02 UTC
Review of attachment 204493 [details] [review]:

::: tests/test-location-entry.c
@@ +221,3 @@
   GtkTreeIter iter;
 
+  g_type_init ();

This can just go away altogether, gtk_init already takes care of it.

::: tests/test-settings.c
@@ +208,3 @@
     gint i;
 
+    g_type_init ();

same here

::: tests/test-view.c
@@ +69,3 @@
     GCancellable *cancellable;
 
+    g_type_init ();

and here
Comment 8 Martin Pitt 2012-01-04 15:10:10 UTC
Created attachment 204583 [details] [review]
Fix remaining g_thread_init calls

Ah, right. Updated patch attached.

Thanks!
Comment 9 Shaun McCance 2012-01-21 16:43:17 UTC
Pushed to master. Thanks.