diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2012-01-03 14:59:08 +0100 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2012-06-16 11:05:56 +0200 |
commit | 7ca54a3faae13ae505e521182a8c368fe4c619a9 (patch) | |
tree | a5cccfd3b2868481d353c83bf0b387044fe4d41b /examples | |
parent | 4e98bedef030b6163bb8d3d26053447a4f97f61a (diff) | |
download | librest-7ca54a3faae13ae505e521182a8c368fe4c619a9.tar.gz |
Drop obsolete g_thread_init()
Since version 2.2 g_type_init() initializes also the thread
system so g_thread_init() is not required anymore. It is deprecated since glib
2.31.
Bump glib requirement accordingly.
https://bugzilla.gnome.org/show_bug.cgi?id=650061
Diffstat (limited to 'examples')
-rw-r--r-- | examples/continuous-twitter.c | 1 | ||||
-rw-r--r-- | examples/get-fireeagle-location.c | 1 | ||||
-rw-r--r-- | examples/get-flickr-favorites.c | 1 | ||||
-rw-r--r-- | examples/lastfm-shout.c | 1 | ||||
-rw-r--r-- | examples/post-twitter.c | 1 | ||||
-rw-r--r-- | examples/test-raw.c | 1 | ||||
-rw-r--r-- | examples/test-xml.c | 1 |
7 files changed, 0 insertions, 7 deletions
diff --git a/examples/continuous-twitter.c b/examples/continuous-twitter.c index 6cd6209..712aa07 100644 --- a/examples/continuous-twitter.c +++ b/examples/continuous-twitter.c @@ -43,7 +43,6 @@ main (int argc, char **argv) char pin[256]; GMainLoop *loop; - g_thread_init (NULL); g_type_init (); loop = g_main_loop_new (NULL, FALSE); diff --git a/examples/get-fireeagle-location.c b/examples/get-fireeagle-location.c index a06edc3..664f264 100644 --- a/examples/get-fireeagle-location.c +++ b/examples/get-fireeagle-location.c @@ -34,7 +34,6 @@ main (int argc, char **argv) RestXmlParser *parser; RestXmlNode *root, *node; - g_thread_init (NULL); g_type_init (); /* Create the proxy */ diff --git a/examples/get-flickr-favorites.c b/examples/get-flickr-favorites.c index 5d4e802..956789b 100644 --- a/examples/get-flickr-favorites.c +++ b/examples/get-flickr-favorites.c @@ -106,7 +106,6 @@ main (int argc, char **argv) char *frob, *url; const char *token; - g_thread_init (NULL); g_type_init (); proxy = flickr_proxy_new ("cf4e02fc57240a9b07346ad26e291080", "cdfa2329cb206e50"); diff --git a/examples/lastfm-shout.c b/examples/lastfm-shout.c index b11b716..f1e5f69 100644 --- a/examples/lastfm-shout.c +++ b/examples/lastfm-shout.c @@ -87,7 +87,6 @@ main (int argc, char **argv) { NULL } }; - g_thread_init (NULL); g_type_init (); context = g_option_context_new ("- send a shout to a Last.fm user"); diff --git a/examples/post-twitter.c b/examples/post-twitter.c index 04c8d89..3f9cc73 100644 --- a/examples/post-twitter.c +++ b/examples/post-twitter.c @@ -31,7 +31,6 @@ main (int argc, char **argv) GError *error = NULL; char pin[256]; - g_thread_init (NULL); g_type_init (); if (argc != 2) { diff --git a/examples/test-raw.c b/examples/test-raw.c index fa6702e..ed8af75 100644 --- a/examples/test-raw.c +++ b/examples/test-raw.c @@ -48,7 +48,6 @@ main (gint argc, gchar **argv) gssize len; g_type_init (); - g_thread_init (NULL); loop = g_main_loop_new (NULL, FALSE); diff --git a/examples/test-xml.c b/examples/test-xml.c index f8460db..5e81625 100644 --- a/examples/test-xml.c +++ b/examples/test-xml.c @@ -114,7 +114,6 @@ main (gint argc, gchar **argv) GMainLoop *loop; g_type_init (); - g_thread_init (NULL); loop = g_main_loop_new (NULL, FALSE); |